Commit 1c700111 authored by Randall Leeds's avatar Randall Leeds

Give the sidebar iframe a name

This simplifies the tests a little bit, maybe it will be more
robust???

Also seems like a useful thing to do anyway.
parent 8c9e4198
...@@ -19,6 +19,7 @@ class Annotator.Host extends Annotator.Guest ...@@ -19,6 +19,7 @@ class Annotator.Host extends Annotator.Guest
hostOrigin ?= window.location.protocol + "//" + window.location.host hostOrigin ?= window.location.protocol + "//" + window.location.host
app = $('<iframe></iframe>') app = $('<iframe></iframe>')
.attr('name', 'hyp_sidebar_frame')
.attr('seamless', '') .attr('seamless', '')
.attr('src', "#{options.app}#/?xdm=#{encodeURIComponent(hostOrigin)}") .attr('src', "#{options.app}#/?xdm=#{encodeURIComponent(hostOrigin)}")
......
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