Commit 8423390b authored by Randall Leeds's avatar Randall Leeds

Fix PDF page rendered event target

parent b5376aab
...@@ -15,10 +15,10 @@ class PDF extends Annotator.Plugin ...@@ -15,10 +15,10 @@ class PDF extends Annotator.Plugin
else else
@documentLoaded = Promise.resolve() @documentLoaded = Promise.resolve()
window.addEventListener('pagerendered', @onpagerendered) document.addEventListener('pagerendered', @onpagerendered)
destroy: -> destroy: ->
window.removeEventListener('pagerendered', @onpagerendered) document.removeEventListener('pagerendered', @onpagerendered)
uri: -> uri: ->
@documentLoaded.then -> @documentLoaded.then ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment