mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] add this.breakpoint and move some user layout choices into an if statement checking the breakpoint
This commit is contained in:
parent
8ca5cfaf48
commit
683c323fd5
1 changed files with 8 additions and 4 deletions
|
@ -46,6 +46,8 @@ class App {
|
||||||
this.appLoaded = false;
|
this.appLoaded = false;
|
||||||
this.workerLoaded = false;
|
this.workerLoaded = false;
|
||||||
this.waitersLoaded = false;
|
this.waitersLoaded = false;
|
||||||
|
|
||||||
|
this.breakpoint = 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,15 +59,17 @@ class App {
|
||||||
setup() {
|
setup() {
|
||||||
document.dispatchEvent(this.manager.appstart);
|
document.dispatchEvent(this.manager.appstart);
|
||||||
|
|
||||||
|
if ( window.innerWidth >= this.breakpoint ) {
|
||||||
this.initialiseSplitter();
|
this.initialiseSplitter();
|
||||||
|
this.setCompileMessage();
|
||||||
|
this.adjustComponentSizes();
|
||||||
|
}
|
||||||
|
|
||||||
this.loadLocalStorage();
|
this.loadLocalStorage();
|
||||||
this.populateOperationsList();
|
this.populateOperationsList();
|
||||||
this.manager.setup();
|
this.manager.setup();
|
||||||
this.manager.output.saveBombe();
|
this.manager.output.saveBombe();
|
||||||
this.adjustComponentSizes();
|
|
||||||
this.setCompileMessage();
|
|
||||||
this.uriParams = this.getURIParams();
|
this.uriParams = this.getURIParams();
|
||||||
|
|
||||||
log.debug("App loaded");
|
log.debug("App loaded");
|
||||||
this.appLoaded = true;
|
this.appLoaded = true;
|
||||||
this.loaded();
|
this.loaded();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue