aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932014-12-14 11:57:19 +0000
committermrmr19932014-12-14 11:57:19 +0000
commit69c117102eb419baa649cccc770bffea5177b1e1 (patch)
treea11e61838228b773a676400eb63424168d528f89 /content_scripts
parentaa190905bff04bd83438960779ce912b048b1f5f (diff)
downloadvimium-69c117102eb419baa649cccc770bffea5177b1e1.tar.bz2
Check if cursorHideStyle is in the document before remove()-ing it
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 30d76523..639a4041 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1075,7 +1075,8 @@ CursorHider =
cursorHideStyle: null
isScrolling: false
- showCursor: -> @cursorHideStyle.remove()
+ showCursor: ->
+ @cursorHideStyle.remove() if @cursorHideStyle.parentElement
hideCursor: ->
document.head.appendChild @cursorHideStyle unless @cursorHideStyle.parentElement