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

Test the "tabs" feature when adding Tab* events.

This commit is contained in:
Doug Kearns
2009-07-09 05:57:45 +10:00
parent 8cb22c4c97
commit 494788e5ca

View File

@@ -353,7 +353,7 @@ function Events() //{{{
var currentMacro = ""; var currentMacro = "";
var lastMacro = ""; var lastMacro = "";
try // not every extension has a getBrowser() method if (liberator.has("tabs"))
{ {
let tabcontainer = getBrowser().mTabContainer; let tabcontainer = getBrowser().mTabContainer;
if (tabcontainer) // not every VIM-like extension has a tab container if (tabcontainer) // not every VIM-like extension has a tab container
@@ -391,7 +391,6 @@ function Events() //{{{
modes.show(); modes.show();
}, null); }, null);
} }
catch (e) {}
// getBrowser().addEventListener("submit", function (event) { // getBrowser().addEventListener("submit", function (event) {
// // reset buffer loading state as early as possible, important for macros // // reset buffer loading state as early as possible, important for macros