fix prefsDb init
This commit is contained in:
parent
bba0c9d7a1
commit
37c750fbba
|
@ -155,12 +155,6 @@ addAPI(/** @namespace API */ {
|
||||||
getValues: () => prefs.__values, // will be deepCopy'd by apiHandler
|
getValues: () => prefs.__values, // will be deepCopy'd by apiHandler
|
||||||
set: prefs.set,
|
set: prefs.set,
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Storage for big items that may exceed 8kB limit of chrome.storage.sync.
|
|
||||||
* To make an item syncable register it with uuidIndex.addCustomId.
|
|
||||||
*/
|
|
||||||
prefsDb: db.open(prefs.STORAGE_KEY),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
/* global addAPI */// common.js
|
||||||
/* global chromeLocal */// storage-util.js
|
/* global chromeLocal */// storage-util.js
|
||||||
/* global cloneError */// worker-util.js
|
/* global cloneError */// worker-util.js
|
||||||
|
/* global prefs */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -29,6 +31,13 @@ const db = (() => {
|
||||||
dbName === DB
|
dbName === DB
|
||||||
? 'styles'
|
? 'styles'
|
||||||
: 'data';
|
: 'data';
|
||||||
|
addAPI(/** @namespace API */ {
|
||||||
|
/**
|
||||||
|
* Storage for big items that may exceed 8kB limit of chrome.storage.sync.
|
||||||
|
* To make an item syncable register it with uuidIndex.addCustomId.
|
||||||
|
*/
|
||||||
|
prefsDb: getProxy(prefs.STORAGE_KEY),
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
styles: getProxy(),
|
styles: getProxy(),
|
||||||
open: getProxy,
|
open: getProxy,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user