blob: 513d12e7a591dc6588830fad32ba15f48ae0a7f5 [file] [log] [blame]
function isEmpty(obj) {
return Object.keys(obj).length === 0;
}
chrome.runtime.onInstalled.addListener(function(details) {
chrome.storage.sync.get(null, function(items) {
if (details.reason == "install") {
if (isEmpty(items)) {
chrome.storage.sync.set({"list": true, "thread": true});
}
}
});
});