aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932014-12-17 14:51:25 +0000
committermrmr19932014-12-17 14:51:25 +0000
commit932652086c9ad601c92ef4aae250f9e0b6ad51a6 (patch)
tree2f43e33f34aa6c167bc62fc0bcd5a39f00ad8ad9 /content_scripts
parentc7213f8a12ff75c00da3c7bdadb38239b096cb19 (diff)
downloadvimium-932652086c9ad601c92ef4aae250f9e0b6ad51a6.tar.bz2
Ensure we only init CursorHider once
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index e4680ff7..78014490 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1124,6 +1124,7 @@ CursorHider =
CursorHider.isScrolling = false
init: ->
+ return unless @cursorHideStyle?
@cursorHideStyle = document.createElement("style")
@cursorHideStyle.innerHTML = """
body * {pointer-events: none !important; cursor: none !important;}