1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 22:10:18 +00:00
musix-oss/node_modules/idb/lib/node.js

14 lines
324 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
if (typeof indexedDB != 'undefined') {
module.exports = require('../build/idb.js');
}
else {
module.exports = {
openDb: function () {
return Promise.reject('IDB requires a browser environment');
},
deleteDb: function () {
return Promise.reject('IDB requires a browser environment');
}
};
}