fmt
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user