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