Skip to content

Instantly share code, notes, and snippets.

View codeyourwayup's full-sized avatar

FRANK GO codeyourwayup

View GitHub Profile
async function mainFuction() {
var p = new Promise(function(resolve, reject){
chrome.storage.sync.get({"disableautoplay": true}, function(options){
resolve(options.disableautoplay);
})
});
const configOut = await p;
console.log(configOut);
}
new Date(Date.now()).toLocaleString();
{
type: 'LISTS_REFRESH_FULFILLED',
payload: {
data: [
{icon: 'rss', name: 'RSS', id: 1},
]
}
}