mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Fixes for windows
This commit is contained in:
@ -104,6 +104,19 @@
|
||||
// ie11 not support message from another domain
|
||||
window.Asc.plugin._initInternal = true;
|
||||
|
||||
var _windowSearch = window.location.search;
|
||||
var _pos1 = _windowSearch.indexOf("windowID=");
|
||||
if (_pos1 >= 0)
|
||||
{
|
||||
_pos1 += 9;
|
||||
var _pos2 = _windowSearch.indexOf("&", _pos1);
|
||||
if (_pos2 < 0)
|
||||
_pos2 = _windowSearch.length;
|
||||
|
||||
window.Asc.plugin.windowID = _windowSearch.substring(_pos1, _pos2);
|
||||
obj.windowID = window.Asc.plugin.windowID;
|
||||
}
|
||||
|
||||
window.parent.postMessage(JSON.stringify(obj), "*");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user