mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 23:57:31 +09:00
utilityOverlay: restore getBoolPref for compatibility
This commit is contained in:
parent
583edc6020
commit
caab96c969
2 changed files with 20 additions and 0 deletions
|
|
@ -60,6 +60,16 @@ function openTopWin(url) {
|
||||||
openUILinkIn(url, "current");
|
openUILinkIn(url, "current");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getBoolPref(prefname, def)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
return Services.prefs.getBoolPref(prefname);
|
||||||
|
}
|
||||||
|
catch(er) {
|
||||||
|
return def;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* openUILink handles clicks on UI elements that cause URLs to load.
|
/* openUILink handles clicks on UI elements that cause URLs to load.
|
||||||
*
|
*
|
||||||
* As the third argument, you may pass an object with the same properties as
|
* As the third argument, you may pass an object with the same properties as
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,16 @@ function openTopWin(url) {
|
||||||
openUILinkIn(url, "current");
|
openUILinkIn(url, "current");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getBoolPref(prefname, def)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
return Services.prefs.getBoolPref(prefname);
|
||||||
|
}
|
||||||
|
catch(er) {
|
||||||
|
return def;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* openUILink handles clicks on UI elements that cause URLs to load.
|
/* openUILink handles clicks on UI elements that cause URLs to load.
|
||||||
*
|
*
|
||||||
* As the third argument, you may pass an object with the same properties as
|
* As the third argument, you may pass an object with the same properties as
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue