Skip to content
Snippets Groups Projects
Commit c2d8ad54 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix issue where hash changes during dialog interaction would break things. ...

fix issue where hash changes during dialog interaction would break things.  extract relay frame id from hash at load time.  closes #295
parent 33c6c738
No related branches found
No related tags found
No related merge requests found
......@@ -113,18 +113,22 @@
// (has window.opener) as well as whether the relay function exists.
// If these conditions are not met, then print an appropriate message.
// get the relay here at the time the channel is setup before any navigation has
// occured. if we wait the window hash might change as a side effect to user
// navigation, which would cause us to not find our parent window.
// issue #295
var relay = getRPRelay();
function onsuccess(rv) {
// Get the relay here so that we ensure that the calling window is still
// open and we aren't causing a problem.
var relay = getRPRelay();
if(relay) {
if (relay) {
relay(rv, null);
}
}
function onerror(error) {
var relay = getRPRelay();
if(relay) {
if (relay) {
relay(null, error);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment