mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Added option to change the theme.
This commit is contained in:
parent
d71ac2e894
commit
2e4076bb75
5 changed files with 20 additions and 0 deletions
|
@ -131,4 +131,14 @@ OptionsWaiter.prototype.setWordWrap = function() {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Changes the theme by setting the class of the <html> element.
|
||||
*/
|
||||
OptionsWaiter.prototype.themeChange = function (e) {
|
||||
var themeClass = e.target.value;
|
||||
|
||||
document.querySelector(":root").className = themeClass;
|
||||
};
|
||||
|
||||
export default OptionsWaiter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue