blob: a3aeae1696ef55d742f2e33ffc6f042b84cf81ac [file] [log] [blame]
avm99963cbea3142019-03-28 00:48:15 +01001function isEmpty(obj) {
2 return Object.keys(obj).length === 0;
3}
4
5chrome.runtime.onInstalled.addListener(function(details) {
6 chrome.storage.sync.get(null, function(items) {
avm9996317e3e702019-03-28 01:27:39 +01007 if (isEmpty(items)) {
8 chrome.storage.sync.set({"list": true, "thread": true});
avm99963cbea3142019-03-28 00:48:15 +01009 }
10 });
11});