Commit 660bf572 authored by Kristof Csillag's avatar Kristof Csillag

Merge pull request #1597 from hypothesis/dont-swallow-exceptions

Don't swallow exceptions when scanning the document
parents e944a5be 5321f450
......@@ -71,7 +71,7 @@ class Annotator.Guest extends Annotator
unless config.dontScan
# Scan the document text with the DOM Text libraries
this.scanDocument "Guest initialized"
this._scan()
# Watch for newly rendered highlights, and update positions in sidebar
this.subscribe "highlightsCreated", (highlights) =>
......@@ -197,14 +197,6 @@ class Annotator.Guest extends Annotator
@plugins.Heatmap._scheduleUpdate()
)
scanDocument: (reason = "something happened") =>
try
console.log "Analyzing host frame, because " + reason + "..."
this._scan()
catch e
console.log e.message
console.log e.stack
_setupWrapper: ->
@wrapper = @element
.on 'click', (event) =>
......
......@@ -36,7 +36,7 @@ class Annotator.Host extends Annotator.Guest
this.showFrame()
# Scan the document
this.scanDocument "Host initialized"
this._scan()
_setupXDM: (options) ->
channel = super
......
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