Fix noWorker mode

This commit is contained in:
yflory 2022-03-14 14:42:53 +01:00
parent 69a0116e44
commit 84844097dd
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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) {