mirror of
https://github.com/gchq/CyberChef
synced 2025-01-12 04:28:53 +00:00
parent
6ed9d4554a
commit
ac4c00cb60
1 changed files with 10 additions and 0 deletions
|
@ -538,6 +538,16 @@ class App {
|
||||||
this.manager.options.changeTheme(Utils.escapeHtml(this.uriParams.theme));
|
this.manager.options.changeTheme(Utils.escapeHtml(this.uriParams.theme));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read in logging level from URI params
|
||||||
|
if (this.uriParams.logging) {
|
||||||
|
const validOptions = ["Silent", "Error", "Warn", "Info", "Debug", "Trace"];
|
||||||
|
if (validOptions.indexOf(this.uriParams.logging) > -1) {
|
||||||
|
this.manager.options.logLevelChange(this.uriParams.logging);
|
||||||
|
} else {
|
||||||
|
log.warn(`Invalid logging level: ${this.uriParams.logging}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.autoBakePause = false;
|
this.autoBakePause = false;
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue