blob: edb6030209d342125972c0e57b1f1375c80e9007 [file] [log] [blame]
avm999636d9c5fe2019-06-04 00:35:53 +02001chrome.storage.sync.get(null, function(items) {
avm99963eb2d0b82019-10-07 22:58:55 +02002 if (items.loaddrafts || items.escalatethreads || items.movethreads) {
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
9 if (items.escalatethreads) {
10 startup[4][20] = true;
11 }
12
avm99963eb2d0b82019-10-07 22:58:55 +020013 if (items.movethreads) {
14 startup[4][18] = true;
15 }
16
avm999636d9c5fe2019-06-04 00:35:53 +020017 document.querySelector("html").setAttribute("data-startup", JSON.stringify(startup));
18 }
19});