From 84844097ddfbe86a8a51e2f2bf05b48a72e11b82 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 14 Mar 2022 14:42:53 +0100 Subject: [PATCH] Fix noWorker mode --- www/common/cryptpad-common.js | 2 +- www/common/outer/noworker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index d32d06eac..f183277e8 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -2547,7 +2547,7 @@ define([ // Use the async store in the main thread if workers are not available require(['/common/outer/noworker.js'], waitFor2(function (NoWorker) { NoWorker.onMessage(function (data) { - msgEv.fire({data: data}); + msgEv.fire({data: data, origin: ''}); }); postMsg = function (d) { setTimeout(function () { NoWorker.query(d); }); }; NoWorker.create(); diff --git a/www/common/outer/noworker.js b/www/common/outer/noworker.js index a1507c2d0..a4a44d1b9 100644 --- a/www/common/outer/noworker.js +++ b/www/common/outer/noworker.js @@ -86,7 +86,7 @@ define([ return { query: function (data) { - msgEv.fire({data: data}); + msgEv.fire({data: data, origin: ''}); }, onMessage: function (cb) { sendMsg.reg(function (data) {