indexeddbshim
Version:
A polyfill for IndexedDB using WebSql
26 lines (19 loc) • 642 B
JavaScript
/* eslint-env browser, worker */
/* globals shimIndexedDB */
import * as UnicodeIdentifiers from './UnicodeIdentifiers.js';
// BEGIN: Same code as in browser.js
import setGlobalVars from './setGlobalVars.js';
import CFG from './CFG.js';
CFG.win = typeof window !== 'undefined' ? window : self; // For Web Workers
setGlobalVars();
// END: Same code as in browser.js
const __setUnicodeIdentifiers = shimIndexedDB.__setUnicodeIdentifiers.bind(
shimIndexedDB
);
/**
* @returns {void}
*/
shimIndexedDB.__setUnicodeIdentifiers = function () {
__setUnicodeIdentifiers(UnicodeIdentifiers);
};
shimIndexedDB.__setUnicodeIdentifiers();