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