mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 04:20:05 +02:00
track top EGroupware window in egw object to be used as egw.top instead of window.top, which can throw a security exception
This commit is contained in:
@@ -150,10 +150,10 @@ export abstract class EgwApp
|
||||
}
|
||||
// Make sure we're running in the top window when we init sidebox
|
||||
//@ts-ignore
|
||||
if(window.app[this.appname] === this && window.top.app[this.appname] !== this && window.top.app[this.appname])
|
||||
if(window.app[this.appname] === this && egw.top.app[this.appname] !== this && egw.top.app[this.appname])
|
||||
{
|
||||
//@ts-ignore
|
||||
window.top.app[this.appname]._init_sidebox(sidebox);
|
||||
egw.top.app[this.appname]._init_sidebox(sidebox);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user