mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Improved theme selection. Added changeTheme method.
This commit is contained in:
parent
6659174f88
commit
383aab5f85
2 changed files with 18 additions and 3 deletions
|
@ -492,8 +492,9 @@ class App {
|
|||
} catch (err) {}
|
||||
}
|
||||
|
||||
// Read in theme from URI params
|
||||
if (this.uriParams.theme) {
|
||||
document.querySelector(":root").className = this.uriParams.theme;
|
||||
this.manager.options.changeTheme(Utils.escapeHtml(this.uriParams.theme));
|
||||
}
|
||||
|
||||
this.autoBakePause = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue