mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 16:25:01 -04:00
add function to check for window width and use that throughout the app for more convenient future use
This commit is contained in:
parent
6a1514db30
commit
df781bec00
6 changed files with 11 additions and 8 deletions
|
@ -30,7 +30,7 @@ class WindowWaiter {
|
|||
* continuous resetting).
|
||||
*/
|
||||
windowResize() {
|
||||
if (window.innerWidth >= this.app.breakpoint) {
|
||||
if (!this.app.isMobileView()) {
|
||||
this.onResizeToDesktop();
|
||||
} else {
|
||||
this.onResizeToMobile();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue