Still fighting with Mocha wrapup & Buffer

This commit is contained in:
Mika 2018-01-26 10:22:59 +02:00 committed by GitHub
parent 44181b983e
commit b8a78cc128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,9 @@ var root;
}
}(this));
const Buffer = root.Gun.SEA.Buffer
const Buffer = Gun.SEA.Buffer || require('buffer')
const seaIndexedDb = new root.Gun.SEA.EasyIndexedDB('SEA', 'GunDB', 1)
const seaIndexedDb = new Gun.SEA.EasyIndexedDB('SEA', 'GunDB', 1)
const checkIndexedDB = (key, prop, resolve_) => {
const doIt = (resolve, reject) => seaIndexedDb.get(key, prop)