Added option to change the theme.

This commit is contained in:
n1474335 2017-04-25 00:21:38 +01:00
parent d71ac2e894
commit 2e4076bb75
5 changed files with 20 additions and 0 deletions

View file

@ -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;