1document.addEventListener("DOMContentLoaded", function() {
2 chrome.storage.sync.get({"bgvalue": "#2E3440"}, bgCallback);
3});
4var bgCallback = function(list) {
5var color = list["bgvalue"];
6console.log(color);
7document.body.style.background = color;
8};
9document.addEventListener("DOMContentLoaded", function() {
10 chrome.storage.sync.get({"fgvalue": "#ECEFF4"}, fgCallback);
11});
12var fgCallback = function(list) {
13var color = list["fgvalue"];
14console.log(color);
15document.body.style.color = color;
16};