1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 01:55:46 +01:00

Handle bad help tag links better

This commit is contained in:
Kris Maglione
2008-12-23 14:15:14 -05:00
parent d225b8908b
commit 1969caca06

View File

@@ -5,7 +5,7 @@ const win = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
const liberator = win.liberator;
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);