Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 14:35:27 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 14:35:27 +0300
commit17691dde7808091652fb1a35d3cc866c0bfd6ef8 (patch)
treee9fd23a300f9dcb556f7de77f4a8738754496391 /js
parent06163173e1f4f52ff7d6ed73332c3a45c74571b2 (diff)
postMessage in safari (Fixed #213)
Diffstat (limited to 'js')
-rw-r--r--js/editor.js21
1 files changed, 14 insertions, 7 deletions
diff --git a/js/editor.js b/js/editor.js
index b4d3d49..5cb0c46 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -79,7 +79,8 @@
if (OCA.Onlyoffice.inframe) {
window.parent.postMessage({
method: "editorShowHeaderButton"
- });
+ },
+ "*");
}
params.push("inframe=2");
} else {
@@ -178,7 +179,8 @@
window.parent.postMessage({
method: "editorRequestSaveAs",
param: saveData
- });
+ },
+ "*");
} else {
OC.dialogs.filepicker(t(OCA.Onlyoffice.AppName, "Save as"),
function (fileDir) {
@@ -220,7 +222,8 @@
window.parent.postMessage({
method: "editorRequestInsertImage",
param: imageMimes
- });
+ },
+ "*");
} else {
OC.dialogs.filepicker(t(OCA.Onlyoffice.AppName, "Insert image"), OCA.Onlyoffice.editorInsertImage, false, imageMimes);
}
@@ -253,7 +256,8 @@
window.parent.postMessage({
method: "editorRequestMailMergeRecipients",
param: recipientMimes
- });
+ },
+ "*");
} else {
OC.dialogs.filepicker(t(OCA.Onlyoffice.AppName, "Select recipients"), OCA.Onlyoffice.editorSetRecipient, false, recipientMimes);
}
@@ -285,13 +289,15 @@
window.parent.postMessage({
method: "editorRequestClose"
- });
+ },
+ "*");
};
OCA.Onlyoffice.onRequestSharingSettings = function() {
window.parent.postMessage({
method: "editorRequestSharingSettings"
- });
+ },
+ "*");
};
OCA.Onlyoffice.onRequestCompareFile = function() {
@@ -303,7 +309,8 @@
window.parent.postMessage({
method: "editorRequestCompareFile",
param: revisedMimes
- });
+ },
+ "*");
} else {
OC.dialogs.filepicker(t(OCA.Onlyoffice.AppName, "Select file to compare"), OCA.Onlyoffice.editorSetRevised, false, revisedMimes);
}