Remove garbage code
This commit is contained in:
parent
674efba41d
commit
e9ab754332
|
@ -87,19 +87,3 @@ const restoreCheckbox = (checkKey, checkId) => {
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', restoreOptions, saveCheckbox)
|
document.addEventListener('DOMContentLoaded', restoreOptions, saveCheckbox)
|
||||||
document.querySelector("form").addEventListener("submit", saveOptions)
|
document.querySelector("form").addEventListener("submit", saveOptions)
|
||||||
|
|
||||||
// test zone
|
|
||||||
function onGot(item) {
|
|
||||||
console.log(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
function onError(error) {
|
|
||||||
console.log(`Error: ${error}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
let allItems = browser.storage.sync.get()
|
|
||||||
allItems.then(onGot, onError)
|
|
||||||
|
|
||||||
const itemValueOpt = chrome.storage.sync.get('pleromaCheck', item => {
|
|
||||||
console.log(item.pleromaCheck)
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in New Issue