mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Use the default value from 'browser.startup.homepage' instead of the hardcoded 'http://start.palemoon.org/'
This commit is contained in:
parent
84ae67b1bc
commit
758922c244
2 changed files with 7 additions and 2 deletions
|
|
@ -42,7 +42,9 @@ var gNewtabUrl = {
|
|||
newtabUrlPref = "about:logopage";
|
||||
break;
|
||||
case 2:
|
||||
newtabUrlPref = "http://start.palemoon.org/";
|
||||
newtabUrlPref = Services.prefs.getDefaultBranch("browser.")
|
||||
.getComplexValue("startup.homepage",
|
||||
Components.interfaces.nsIPrefLocalizedString).data;
|
||||
break;
|
||||
case 3:
|
||||
// If url is a pipe-delimited set of pages, just take the first one.
|
||||
|
|
|
|||
|
|
@ -85,11 +85,14 @@ var gTabsPane = {
|
|||
let newtabUrlPref = document.getElementById("browser.newtab.url");
|
||||
let newtabUrlSanitizedPref = document.getElementById("browser.newtab.myhome");
|
||||
let newtabUrlChoice = document.getElementById("browser.newtab.choice");
|
||||
let defaultStartupHomepage = Services.prefs.getDefaultBranch("browser.")
|
||||
.getComplexValue("startup.homepage",
|
||||
Components.interfaces.nsIPrefLocalizedString).data;
|
||||
switch (newtabUrlPref.value) {
|
||||
case "about:logopage":
|
||||
newtabUrlChoice.value = 1;
|
||||
break;
|
||||
case "http://start.palemoon.org/":
|
||||
case defaultStartupHomepage:
|
||||
newtabUrlChoice.value = 2;
|
||||
break;
|
||||
case newtabUrlSanitizedPref.value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue