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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user