Skip to content

Commit 8b57885

Browse files
committed
Open the appearance page for users to configure their preferred visual theme on upgrade from 11.4.1rc3 and below.
1 parent c0f08ce commit 8b57885

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bg/LifeCycle.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,16 @@ var LifeCycle = (() => {
314314
// add the lan capability to any preset which already has the script capability
315315
await configureNewCap("lan", ["DEFAULT", "TRUSTED", "CUSTOM"], caps => caps.has("script"));
316316
}
317+
318+
if (Ver.is(previousVersion, "<=", "11.4.1rc3")) {
319+
// show theme switcher on update unless user has already chosen between Vintage Blue and Modern Red
320+
(async () => {
321+
let isVintage = await Themes.isVintage();
322+
if (typeof isVintage === "boolean") return;
323+
await ns.init;
324+
ns.openOptionsPage({tab: 2, focus: "#opt-vintageTheme", hilite: "#sect-themes"});
325+
})();
326+
}
317327
},
318328

319329
async onUpdateAvailable(details) {

0 commit comments

Comments
 (0)