1document.addEventListener("DOMContentLoaded", function() {
2chrome.storage.sync.get({"bgvalue": "#2E3440"}, bgCallback);
3chrome.storage.sync.get({"fgvalue": "#ECEFF4"}, fgCallback);
4});
56
var bgCallback = function(colourPref) { document.body.style.background = colourPref["bgvalue"]; };
7var fgCallback = function(colourPref) { document.body.style.color = colourPref["fgvalue"]; };