Commit 5dba7c97 authored by Marco Kellershoff's avatar Marco Kellershoff 🤸

Fix version number and remote.newtab.js

parent 2767ce82
......@@ -4,7 +4,7 @@
"name": "Super Evil New Tab",
"short_name": "SENT",
"author":"Marco Kellershoff",
"version": "7.0.1",
"version": "7.0.2",
"description": "Fixes the super evil new tab page.",
"options_page": "options.html",
"permissions": [
......
{
"name": "super-evil-new-tab",
"version": "7.0.0",
"version": "7.0.2",
"description": "This extension overrides the default `chrome://newtab` and let's you completely customize it.",
"main": "background.js",
"scripts": {
......
......@@ -13,14 +13,19 @@
let css = document.createElement("style");
let js = document.createElement("script");
getOption("bgColor", result => {
if (result.bgColor)
const cachedBgColor = window.localStorage.getItem("bgColor");
if (result.bgColor !== cachedBgColor) {
window.localStorage.setItem(
"bgColor",
result.bgColor
);
}
const cachedBgColor = window.localStorage.getItem(
"bgColor"
);
if (
result.bgColor &&
result.bgColor.length &&
result.bgColor !== cachedBgColor
) {
window.localStorage.setItem(
"bgColor",
result.bgColor
);
}
});
getOption("css", result => {
css.innerHTML = result.css;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment