Lock API URLs and update match patterns for injection preferences

This commit is contained in:
mr. M
2024-12-29 22:59:27 +01:00
parent 87d6b55022
commit 819c818976
2 changed files with 5 additions and 3 deletions

View File

@@ -91,9 +91,11 @@ pref('zen.view.show-newtab-button-border-top', true);
pref('zen.view.show-newtab-button-top', false);
#ifdef MOZILLA_OFFICIAL
pref('zen.rice.api.url', "https://share.zen-browser.app");
pref('zen.rice.api.url', 'https://share.zen-browser.app', locked);
pref('zen.injections.match-urls', 'https://zen-browser.app/*,https://share.zen-browser.app/*', locked);
#else
pref('zen.rice.api.url', "http://localhost:3000");
pref('zen.rice.api.url', "http://localhost:3000", locked);
pref('zen.injections.match-urls', 'http://localhost:3000/*', locked);
#endif
pref('zen.rice.share.notice.accepted', false);

View File

@@ -313,5 +313,5 @@ gZenActorsManager.addJSWindowActor("ZenThemeMarketplace", {
DOMContentLoaded: {},
},
},
matches: ["https://*.zen-browser.app/*", "about:preferences"],
matches: [Services.prefs.getStringPref("zen.injections.match-urls").split(","), "about:preferences"],
});