mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 16:13:18 +00:00
14 lines
324 B
JavaScript
14 lines
324 B
JavaScript
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');
|
|
}
|
|
};
|
|
}
|