[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 160/483: Fix strict warning when using EHH with ABP 1.1
David Prévot
taffit at moszumanska.debian.org
Thu Jan 22 21:41:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.
commit bae280b7f1767c8ab649c29a6dd7de1ddf3ec48a
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Apr 29 09:12:32 2009 +0200
Fix strict warning when using EHH with ABP 1.1
---
chrome/content/overlay.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/overlay.js b/chrome/content/overlay.js
index 5038f88..ae7de22 100644
--- a/chrome/content/overlay.js
+++ b/chrome/content/overlay.js
@@ -39,8 +39,9 @@ function ehhInit2() {
window.addEventListener("blur", ehhHideTooltips, true);
ehhGetBrowser().addEventListener("select", ehhStop, false);
- // Make sure we configure the shortcut key even if the default pref isn't there
- if (window.abpConfigureKey) {
+ // Make sure we configure the shortcut key even if the default pref isn't there.
+ // TODO: Remove once ABP 1.1 is minimal supported version.
+ if ("abpConfigureKey" in window) {
var defaultBranch = prefService.getDefaultBranch("extensions.adblockplus.");
try {
// Seems to be the only way to test whether the pref really exists in the default branch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git
More information about the Pkg-mozext-commits
mailing list