mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 06:15:42 +02:00
Handle bad help tag links better
This commit is contained in:
1 parent
d225b8908b
commit
1969caca06
1 file changed
+1
-1
@@ -5,7 +5,7 @@ const win = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
|||||||
const liberator = win.liberator;
|
const liberator = win.liberator;
|
||||||
|
|
||||||
let page = liberator.findHelp(decodeURIComponent(document.location.search.substr(1)));
|
let page = liberator.findHelp(decodeURIComponent(document.location.search.substr(1)));
|
||||||
let url = "chrome://liberator/locale/" + page;
|
let url = page ? "chrome://liberator/locale/" + page : content.history.previous;
|
||||||
|
|
||||||
win.getBrowser().loadURIWithFlags(url, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);
|
win.getBrowser().loadURIWithFlags(url, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);
|
||||||
|
|
||||||
Reference in new issue
Block a user