mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 18:38:29 +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:
@ -68,9 +68,9 @@ var EgwApp = /** @class */ (function () {
|
||||
}
|
||||
// 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 {
|
||||
this._init_sidebox(sidebox);
|
||||
|
Reference in New Issue
Block a user