aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/hud.coffee3
-rw-r--r--content_scripts/ui_component.coffee3
2 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index 32662861..0bd1df3e 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -50,8 +50,7 @@ HUD =
clearTimeout(@_showForDurationTimerId)
@tween.stop()
if immediate
- @hudUI.hide()
- Mode.setIndicator() if updateIndicator
+ if updateIndicator then Mode.setIndicator() else @hudUI.hide()
else
@tween.fade 0, 150, => @hide true, updateIndicator
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index 675b46c7..6aa22119 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -2,8 +2,8 @@ class UIComponent
uiComponentIsReady: false
iframeElement: null
iframePort: null
- iframeFrameId: null
showing: false
+ iframeFrameId: null
options: null
shadowDOM: null
styleSheetGetter: null
@@ -119,5 +119,6 @@ class UIComponent
request.open "GET", (chrome.runtime.getURL file), true
request.send()
+
root = exports ? window
root.UIComponent = UIComponent