diff options
| author | mrmr1993 | 2014-12-14 11:57:19 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-14 11:57:19 +0000 |
| commit | 69c117102eb419baa649cccc770bffea5177b1e1 (patch) | |
| tree | a11e61838228b773a676400eb63424168d528f89 /content_scripts | |
| parent | aa190905bff04bd83438960779ce912b048b1f5f (diff) | |
| download | vimium-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.coffee | 3 |
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 |
