This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run in chrome -> sources -> snippets at | |
// chrome-extension://[extension-id]/window.html | |
async function storageGet(storageType, space = 2) { | |
let storage_fn; | |
if (storageType === 'local') { | |
storage_fn = chrome.storage.local; | |
} else if (storageType === 'sync') { | |
storage_fn = chrome.storage.sync; | |
} else { |
OlderNewer