Fix noWorker mode

pull/1/head
yflory 3 years ago
parent 69a0116e44
commit 84844097dd

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

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

Loading…
Cancel
Save