aboutsummaryrefslogtreecommitdiffstats
path: root/i_love_echo.js
diff options
context:
space:
mode:
authorteramako2010-10-24 18:50:20 +0900
committerteramako2010-10-24 18:50:20 +0900
commitcde3e91c73bc0da8d9f100287c25324c42b2abae (patch)
treea4f4c5f832ef4b7389a8548c5e9c6fc20cce9d51 /i_love_echo.js
parentd8436fafc3afdaa22408e46bb2376e378a4be6e2 (diff)
downloadvimperator-plugins-cde3e91c73bc0da8d9f100287c25324c42b2abae.tar.bz2
[i_love_echo.js] supports Firefox4
Firefox4ではFUELのApplication.extensions.*が使えない、かつ、 代わりのメソッドはcallbackを必要として扱いにくいので、 windowオブジェクトにメソッドがあるかで判断させる。
Diffstat (limited to 'i_love_echo.js')
-rw-r--r--i_love_echo.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/i_love_echo.js b/i_love_echo.js
index bf147aa..87dee9b 100644
--- a/i_love_echo.js
+++ b/i_love_echo.js
@@ -144,7 +144,8 @@ userContext.$_ = { //{{{
return null;
}
}; // }}}
-const DOMINSPECTOR = Application.extensions.has("inspector@mozilla.org") && Application.extensions.get("inspector@mozilla.org").enabled;
+//const DOMINSPECTOR = Application.extensions.has("inspector@mozilla.org") && Application.extensions.get("inspector@mozilla.org").enabled;
+const DOMINSPECTOR = ("inspectObject" in window);
// -----------------------------------------------------------------------------
// Core