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
else
@documentLoaded = Promise.resolve()
window.addEventListener('pagerendered', @onpagerendered)
document.addEventListener('pagerendered', @onpagerendered)
destroy: ->
window.removeEventListener('pagerendered', @onpagerendered)
document.removeEventListener('pagerendered', @onpagerendered)
uri: ->
@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