summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-08-09 08:20:01 -0400
committerHenry Castro <hcastro@collabora.com>2021-08-09 08:23:18 -0400
commit370086b56882efca6e02eea611881a5ff401cdc7 (patch)
tree8304fda275fc26bba8fce861763469763ea98ac8
parentSidebar: expander with is 290px (322px - 2x16px) (diff)
downloadonline-gh-pr-4E.tar.gz
online-gh-pr-4E.zip
loleaflet: avoid reload page if it is integrated with WOPI gh-pr-4E
Change-Id: I3c6ba97c04c001affbc62b039290d2a7a8c8f91a Signed-off-by: Henry Castro <hcastro@collabora.com>
-rw-r--r--loleaflet/src/core/Socket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index d41f749131..51d571259f 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -510,7 +510,7 @@ app.definitions.Socket = L.Class.extend({
this.WSDServer = JSON.parse(textMsg.substring(textMsg.indexOf('{')));
- if (oldId && oldVersion && sameFile) {
+ if (!this._map.options.wopi && oldId && oldVersion && sameFile) {
if (this.WSDServer.Id !== oldId || this.WSDServer.Version !== oldVersion) {
var reloadMessage = _('Server is now reachable. We have to refresh the page now.');
if (window.mode.isMobile())