aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-28 06:51:35 +0100
committerStephen Blott2016-04-28 06:51:35 +0100
commitfc8519e4e3a770253a35f1af7546d432f64392ea (patch)
treedd5c503a121b27dbfb627bb8890eba115486fecc /lib/dom_utils.coffee
parentac340e2346247b5cd1878e1a814d4c151df3e892 (diff)
downloadvimium-fc8519e4e3a770253a35f1af7546d432f64392ea.tar.bz2
Make vimiumFlash a class.
There are circumstances when we hav two (identical) vimiumFlash elements displayed: specifically, when using the waitForEnter keyboard blocker. So, we should use a class (rather than an id) to style the flash element.
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 3d719337..b247e93b 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -263,8 +263,8 @@ DomUtils =
addFlashRect: (rect) ->
flashEl = @createElement "div"
- flashEl.id = "vimiumFlash"
- flashEl.className = "vimiumReset"
+ flashEl.classList.add "vimiumReset"
+ flashEl.classList.add "vimiumFlash"
flashEl.style.left = rect.left + "px"
flashEl.style.top = rect.top + "px"
flashEl.style.width = rect.width + "px"