From 2d2c242ab92baf1bb3abac0d2a8d5bd545b743c3 Mon Sep 17 00:00:00 2001 From: dryajov Date: Tue, 31 Jan 2017 02:11:28 -0800 Subject: [PATCH 1/2] WIP: use self instead of window for WebWorker compatibility --- test/browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/browser.js b/test/browser.js index 62e3decd..35d3656c 100644 --- a/test/browser.js +++ b/test/browser.js @@ -12,10 +12,10 @@ const tests = require('./repo-test') const repoContext = require.context('buffer!./test-repo', true) -const idb = window.indexedDB || - window.mozIndexedDB || - window.webkitIndexedDB || - window.msIndexedDB +const idb = self.indexedDB || + self.mozIndexedDB || + self.webkitIndexedDB || + self.msIndexedDB idb.deleteDatabase('ipfs') idb.deleteDatabase('ipfs/blocks') From a67cce5812cb2d751d5a6157615627611fb68886 Mon Sep 17 00:00:00 2001 From: dmitriy ryajov Date: Tue, 7 Feb 2017 21:39:45 -0800 Subject: [PATCH 2/2] chore: update aegir to version 10 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 30dde222..f8e483ff 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "node": ">=4.0.0" }, "devDependencies": { - "aegir": "^9.2.1", + "aegir": "^10.0.0", "buffer-loader": "^0.0.1", "chai": "^3.5.0", "fs-pull-blob-store": "^0.4.1", @@ -68,4 +68,4 @@ "nginnever ", "npmcdn-to-unpkg-bot " ] -} \ No newline at end of file +}