blob: 047f2b75909eebb4b6e511eb075eb4c530118c2f [file] [log] [blame]
avm999636d9c5fe2019-06-04 00:35:53 +02001chrome.storage.sync.get(null, function(items) {
avm999636c7920f2020-07-14 18:18:20 +02002 if (items.loaddrafts || items.batchduplicate) {
avm999636d9c5fe2019-06-04 00:35:53 +02003 var startup = JSON.parse(document.querySelector("html").getAttribute("data-startup"));
avm99963c19497f2019-08-23 00:15:11 +02004
5 if (items.loaddrafts) {
6 startup[4][13] = true;
7 }
8
avm999636c7920f2020-07-14 18:18:20 +02009 if (items.batchduplicate) {
10 startup[4][58] = true;
11 }
12
avm999636d9c5fe2019-06-04 00:35:53 +020013 document.querySelector("html").setAttribute("data-startup", JSON.stringify(startup));
14 }
15});