This commit is contained in:
idk
2021-02-05 12:41:26 -05:00
parent ac792dbcd5
commit 49948a524e
2 changed files with 34 additions and 21 deletions

View File

@@ -37,11 +37,11 @@ clean: rc clean-artifacts
## EVEN RELEASES are AMO RELEASES
## ODD RELEASES are SELFHOSTED RELEASES
MOZ_VERSION=0.96
VERSION=0.95
MOZ_VERSION=0.98
VERSION=0.97
## INCREMENT THIS EVERY TIME YOU DO A RELEASE
LAST_VERSION=0.93
LAST_VERSION=0.95
YELLOW=F7E59A
ORANGE=FFC56D

View File

@@ -262,8 +262,11 @@ function themeWindow(window) {
if (Object.keys(them).length > 0) {
try {
browser.theme.update(window.id, them.originalTheme);
}catch(e){
console.log("Original theme set error. Your theme must have an SVG in it.", e)
} catch (e) {
console.log(
"Original theme set error. Your theme must have an SVG in it.",
e
);
}
} else {
browser.theme.update(window.id, { colors: null });
@@ -375,26 +378,36 @@ function handleUpdated(updateInfo) {
function maybeSet(them) {
console.log("original theme found:", them, Object.keys(them).length);
try {
console.log("testing theme", updateInfo.theme.colors.toolbar, "!=", btheme.colors.toolbar);
console.log("testing theme", updateInfo.theme.colors.toolbar, "!=", dtheme.colors.toolbar);
if (
updateInfo.theme.colors.toolbar != dtheme.colors.toolbar &&
updateInfo.theme.colors.toolbar != btheme.colors.toolbar
) {
function onSet() {
console.log("stored theme:", updateInfo.theme);
}
/*if (
console.log(
"testing theme",
updateInfo.theme.colors.toolbar,
"!=",
btheme.colors.toolbar
);
console.log(
"testing theme",
updateInfo.theme.colors.toolbar,
"!=",
dtheme.colors.toolbar
);
if (
updateInfo.theme.colors.toolbar != dtheme.colors.toolbar &&
updateInfo.theme.colors.toolbar != btheme.colors.toolbar
) {
function onSet() {
console.log("stored theme:", updateInfo.theme);
}
/*if (
updateInfo.theme.colors != null &&
updateInfo.theme.images != null &&
updateInfo.theme.properties != null
) {*/
console.log("storing theme:", updateInfo.theme);
browser.storage.local
.set({ originalTheme: updateInfo.theme })
.then(onSet, onError);
//}
}
console.log("storing theme:", updateInfo.theme);
browser.storage.local
.set({ originalTheme: updateInfo.theme })
.then(onSet, onError);
//}
}
} catch (e) {
console.log("theme storage error", e);
}