From 214cefc96d8b08f5dc62b6eee372d12cb2c62b55 Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Tue, 14 Feb 2012 19:30:09 -0300 Subject: some changes in boolean checks --- background_page.html | 2 +- vimiumFrontend.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background_page.html b/background_page.html index 899d4a51..fba9a078 100644 --- a/background_page.html +++ b/background_page.html @@ -772,7 +772,7 @@ * * This value is configurable via the options page. */ - function hudDisabled() { + function hudEnabled() { return localStorage['hideHud'] !== "true"; } diff --git a/vimiumFrontend.js b/vimiumFrontend.js index e0759df2..cf3128e2 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -792,7 +792,7 @@ HUD = { }, show: function(text) { - if (hudDisabled()) return; + if (!hudEnabled()) return; clearTimeout(HUD._showForDurationTimerId); HUD.displayElement().innerHTML = text; clearInterval(HUD._tweenId); -- cgit v1.2.3