diff --git a/admin/js/app.ts b/admin/js/app.ts index c0b1c224e6..b2e4cd66f1 100644 --- a/admin/js/app.ts +++ b/admin/js/app.ts @@ -172,9 +172,9 @@ class AdminApp extends EgwApp return; } // check for mobile framework and close the sidebox/-bar - if (typeof framework.toggleMenu === 'function') + if (typeof window.framework?.toggleMenu === 'function') { - framework.toggleMenu('on'); + window.framework.toggleMenu('on'); } var ajax : any = false; if (_url)