diff --git a/js/background.js b/js/background.js index 18d1b2cfd3a..22f08f14e8b 100644 --- a/js/background.js +++ b/js/background.js @@ -33,7 +33,7 @@ }); // start a background worker for ecc - textsecure.protocol_wrapper.startWorker(); + textsecure.protocol_wrapper.startWorker('/js/libsignal-protocol-worker.js'); extension.onLaunched(function() { console.log('extension launched'); diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 85d420b6ee5..f0712b4f7fe 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -35429,8 +35429,8 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ window.textsecure = window.textsecure || {}; window.textsecure.protocol_wrapper = { - startWorker: function() { - protocolInstance.startWorker('/js/libsignal-protocol-worker.js'); + startWorker: function(url) { + protocolInstance.startWorker(url); }, stopWorker: function() { protocolInstance.stopWorker(); diff --git a/libtextsecure/protocol_wrapper.js b/libtextsecure/protocol_wrapper.js index 834a806cd38..1714ff19396 100644 --- a/libtextsecure/protocol_wrapper.js +++ b/libtextsecure/protocol_wrapper.js @@ -11,8 +11,8 @@ window.textsecure = window.textsecure || {}; window.textsecure.protocol_wrapper = { - startWorker: function() { - protocolInstance.startWorker('/js/libsignal-protocol-worker.js'); + startWorker: function(url) { + protocolInstance.startWorker(url); }, stopWorker: function() { protocolInstance.stopWorker();