mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Fix browser console errors
This commit is contained in:
parent
bb1928da05
commit
f20132edb0
3 changed files with 19 additions and 7 deletions
|
|
@ -133,8 +133,12 @@ var AboutHomeListener = {
|
|||
|
||||
onUpdate: function(aData) {
|
||||
let doc = content.document;
|
||||
if (aData.showRestoreLastSession && !PrivateBrowsingUtils.isContentWindowPrivate(content))
|
||||
doc.getElementById("launcher").setAttribute("session", "true");
|
||||
if (aData.showRestoreLastSession && !PrivateBrowsingUtils.isContentWindowPrivate(content)) {
|
||||
let launcher = doc.getElementById("launcher");
|
||||
if (launcher) {
|
||||
launcher.setAttribute("session", "true");
|
||||
}
|
||||
}
|
||||
|
||||
// Inject search engine URL.
|
||||
let docElt = doc.documentElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue