From 76124ae7043ab89af9da99d6a59da4585993255b Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Nov 2021 15:40:25 +0100 Subject: [PATCH] Fix reconnect errors in OnlyOffice --- www/common/onlyoffice/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 5684a1dd8..ceeca7648 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -2911,7 +2911,7 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null var useNewDefault = content.version && content.version >= 2; - openRtChannel(function () { + openRtChannel(Util.once(function () { setMyId(); oldHashes = JSON.parse(JSON.stringify(content.hashes)); initializing = false; @@ -3069,7 +3069,7 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null } next(); - }); + })); }; config.onError = function (err) {