Commit 69617f07 authored by Randall Leeds's avatar Randall Leeds

Work around jschannel bug -- fixes #823

parent ec1db0f9
......@@ -42,6 +42,10 @@ class Annotator.Guest extends Annotator
formatted['uri'] = @plugins.Document.uri()
for k, v of annotation when k isnt 'highlights'
formatted[k] = v
# Work around issue in jschannel where a repeated object is considered
# recursive, even if it is not its own ancestor.
if formatted.document?.title
formatted.document.title = formatted.document.title.slice()
formatted
onConnect: (source, origin, scope) =>
# Unfortunately, jschannel chokes on chrome-extension: origins
......
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