mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 22:21:01 +01:00
Theme configuration through url
This commit is contained in:
parent
60f5093c6c
commit
6e2fb67d76
@ -453,6 +453,7 @@ class App {
|
|||||||
* Searches the URI parameters for recipe and input parameters.
|
* Searches the URI parameters for recipe and input parameters.
|
||||||
* If recipe is present, replaces the current recipe with the recipe provided in the URI.
|
* If recipe is present, replaces the current recipe with the recipe provided in the URI.
|
||||||
* If input is present, decodes and sets the input to the one provided in the URI.
|
* If input is present, decodes and sets the input to the one provided in the URI.
|
||||||
|
* If theme is present, uses the theme.
|
||||||
*
|
*
|
||||||
* @fires Manager#statechange
|
* @fires Manager#statechange
|
||||||
*/
|
*/
|
||||||
@ -491,6 +492,10 @@ class App {
|
|||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.uriParams.theme) {
|
||||||
|
document.querySelector(":root").className = this.uriParams.theme;
|
||||||
|
}
|
||||||
|
|
||||||
this.autoBakePause = false;
|
this.autoBakePause = false;
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user