Use global this in src/worker/worker.js and add to linting

This commit is contained in:
Tankred Hase
2016-02-06 14:28:05 +07:00
parent d40c3e81d9
commit c4bc9b2fe0
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
window = {}; // to make UMD bundles work
this.window = {}; // to make UMD bundles work
// Mozilla bind polyfill because phantomjs is stupid
if (!Function.prototype.bind) {
@@ -46,7 +46,7 @@ var MAX_SIZE_RANDOM_BUFFER = 60000;
window.openpgp.crypto.random.randomBuffer.init(MAX_SIZE_RANDOM_BUFFER);
self.onmessage = function (event) {
this.onmessage = function (event) {
var data = null,
err = null,
msg = event.data,