Commit b5f105c4 authored by Randall Leeds's avatar Randall Leeds

Fix regression on non-debug extension package

parent 0de26664
......@@ -36,6 +36,10 @@ class Annotator.Guest extends Annotator
formatted[k] = v
formatted
onConnect: (source, origin, scope) =>
# Unfortunately, jschannel chokes on chrome-extension: origins
if origin.match /^chrome-extension:\/\//
origin = '*'
@panel = this._setupXDM
window: source
origin: origin
......
......@@ -233,6 +233,10 @@ class Annotator.Plugin.Bridge extends Annotator.Plugin
method: 'loadAnnotations'
params: (this._format a for t, a of @cache)
# Unfortunately, jschannel chokes on chrome-extension: origins
if options.origin.match /^chrome-extension:\/\//
options.origin = '*'
channel = this._build options
@links.push
......
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