commit
ac109145b5
|
@ -866,7 +866,7 @@
|
||||||
path += app + "/";
|
path += app + "/";
|
||||||
path += (config.type === "mobile" || isSafari_mobile)
|
path += (config.type === "mobile" || isSafari_mobile)
|
||||||
? "mobile"
|
? "mobile"
|
||||||
: (config.type === "embedded" || (app=='documenteditor') && (config.document.permissions.fillForms===true) && (config.document.permissions.edit === false) && (config.editorConfig.mode !== 'view'))
|
: (config.type === "embedded" || (app=='documenteditor') && config.document.permissions && (config.document.permissions.fillForms===true) && (config.document.permissions.edit === false) && (config.editorConfig.mode !== 'view'))
|
||||||
? "embed"
|
? "embed"
|
||||||
: "main";
|
: "main";
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ if (window.Common === undefined) {
|
||||||
|
|
||||||
var _onMessage = function(msg) {
|
var _onMessage = function(msg) {
|
||||||
// TODO: check message origin
|
// TODO: check message origin
|
||||||
if (msg.origin !== window.parentOrigin && msg.origin !== window.location.origin) return;
|
if (msg.origin !== window.parentOrigin && msg.origin !== window.location.origin && !(msg.origin==="null" && (window.parentOrigin==="file://" || window.location.origin==="file://"))) return;
|
||||||
|
|
||||||
var data = msg.data;
|
var data = msg.data;
|
||||||
if (Object.prototype.toString.apply(data) !== '[object String]' || !window.JSON) {
|
if (Object.prototype.toString.apply(data) !== '[object String]' || !window.JSON) {
|
||||||
|
|
Loading…
Reference in a new issue