
var themes = [
  "faded",
  "grayscale",
  "sepia",
  "wide-blur",
  "overexposed",
  "flip-hue",
  "red",
  "blue",
  "none"
];

function defaultTheme() {
  return "faded";
}

if (!window.isSecureContext) {
  chrome.storage.local.get({
    theme: "default"
  }, function(items) {
    var theme = items.theme;
    if (themes.indexOf(theme) === -1) {
      theme = defaultTheme();
    }

    document.body.classList.add("ugly-http-theme-" + theme);
  });
}
setTimeout(function() {
document.body.classList.add("ugly-http-status-loaded");
}, 10);

@@ -454,31 +454,8 @@
 ;%0A%7D%0A
-setTimeout(function() %7B
 %0Adoc
@@ -511,12 +511,4 @@
 %22);%0A
-%7D, 10);%0A

Add ugly-http-status-loaded class synchronously. Fixes #15.