From 1e175f338a18e08f61d5d49786e1ca49b4a45c12 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 14 May 2021 15:32:03 +0300 Subject: [PATCH] [all] fix bug 50414 --- apps/common/main/lib/controller/Desktop.js | 2 +- apps/documenteditor/main/index.html.deploy | 6 +++--- apps/presentationeditor/main/index.html.deploy | 6 +++--- apps/spreadsheeteditor/main/index.html.deploy | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index b14fb3235..1df76447f 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -48,7 +48,7 @@ define([ uithemes: true }; - var native = window.native || window.AscDesktopEditor; + var native = window.desktop || window.AscDesktopEditor; !!native && native.execCommand('webapps:features', JSON.stringify(features)); var Desktop = function () { diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index dbcbd8d6b..6387529ff 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -212,12 +212,12 @@ window.parentOrigin = params["parentOrigin"]; if ( window.AscDesktopEditor ) { - window.native = window.AscDesktopEditor; + window.desktop = window.AscDesktopEditor; window.on_native_message = function (cmd, param) { !window.native_message_cmd && (window.native_message_cmd = []); window.native_message_cmd[cmd] = param; } - window.native.execCommand('webapps:entry', ''); + window.desktop.execCommand('webapps:entry', ''); } @@ -230,7 +230,7 @@
@@ -288,7 +288,7 @@
@@ -288,7 +288,7 @@