mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 00:57:30 +09:00
Remove some leftover snippets code.
follow-up to 3a17b713ef27abb8c9d7c116815d3af7e0f366d9
This commit is contained in:
parent
e6f376f5ef
commit
dabcbe1d6d
1 changed files with 0 additions and 4 deletions
|
|
@ -2445,16 +2445,12 @@ function BrowserOnAboutPageLoad(doc) {
|
||||||
|
|
||||||
// Inject search engine and snippets URL.
|
// Inject search engine and snippets URL.
|
||||||
let docElt = doc.documentElement;
|
let docElt = doc.documentElement;
|
||||||
// set the following attributes BEFORE searchEngineURL, which triggers to
|
|
||||||
// show the snippets when it's set.
|
|
||||||
docElt.setAttribute("snippetsURL", AboutHomeUtils.snippetsURL);
|
|
||||||
if (AboutHomeUtils.showKnowYourRights) {
|
if (AboutHomeUtils.showKnowYourRights) {
|
||||||
docElt.setAttribute("showKnowYourRights", "true");
|
docElt.setAttribute("showKnowYourRights", "true");
|
||||||
// Set pref to indicate we've shown the notification.
|
// Set pref to indicate we've shown the notification.
|
||||||
let currentVersion = Services.prefs.getIntPref("browser.rights.version");
|
let currentVersion = Services.prefs.getIntPref("browser.rights.version");
|
||||||
Services.prefs.setBoolPref("browser.rights." + currentVersion + ".shown", true);
|
Services.prefs.setBoolPref("browser.rights." + currentVersion + ".shown", true);
|
||||||
}
|
}
|
||||||
docElt.setAttribute("snippetsVersion", AboutHomeUtils.snippetsVersion);
|
|
||||||
|
|
||||||
function updateSearchEngine() {
|
function updateSearchEngine() {
|
||||||
let engine = AboutHomeUtils.defaultSearchEngine;
|
let engine = AboutHomeUtils.defaultSearchEngine;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue