1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 05:27:59 +01:00

Fix some generally silly, stupid, and/or annoying help quirks.

This commit is contained in:
Kris Maglione
2008-12-20 23:48:56 -05:00
parent 2f0132cabc
commit df7c7c9d51
4 changed files with 59 additions and 41 deletions

View File

@@ -1,8 +1,11 @@
const liberator = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher)
.activeWindow
.liberator;
const win = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher)
.activeWindow;
const liberator = win.liberator;
liberator.help(decodeURIComponent(document.location.search.substr(1)));
let page = liberator.findHelp(decodeURIComponent(document.location.search.substr(1)));
let url = "chrome://liberator/locale/" + page;
win.getBrowser().loadURIWithFlags(url, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);