mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 07:17:30 +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
|
|
@ -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