Skip to content

Commit

Permalink
feat: change window to self for webworker support
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and dignifiedquire committed Feb 8, 2017
1 parent 2ce05ee commit 9f09dbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "idb-pull-blob-store",
"version": "0.5.1",
"description": "IndexedDB implementation for interface-pull-blob-store",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"main": "src/index.js",
"scripts": {
"lint": "aegir-lint",
"build": "aegir-build",
Expand All @@ -22,7 +21,7 @@
"author": "Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"license": "MIT",
"devDependencies": {
"aegir": "^9.2.1",
"aegir": "^10.0.0",
"chai": "^3.5.0",
"interface-pull-blob-store": "^0.6.0"
},
Expand All @@ -47,4 +46,4 @@
"type": "git",
"url": "git+https://github.com/ipfs/js-idb-pull-blob-store.git"
}
}
}
8 changes: 4 additions & 4 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
const testSuite = require('interface-pull-blob-store/lib/tests')

const IdbBlobStore = require('../src')
const indexedDB = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB
const indexedDB = self.indexedDB ||
self.mozIndexedDB ||
self.webkitIndexedDB ||
self.msIndexedDB

testSuite({
setup (cb) {
Expand Down
8 changes: 4 additions & 4 deletions test/streaming.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const expect = require('chai').expect
const pull = require('pull-stream')

const IdbBlobStore = require('../src')
const indexedDB = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB
const indexedDB = self.indexedDB ||
self.mozIndexedDB ||
self.webkitIndexedDB ||
self.msIndexedDB

describe('streaming', () => {
let store
Expand Down

0 comments on commit 9f09dbe

Please sign in to comment.