Skip to content
Snippets Groups Projects
Commit ca7e1462 authored by Loïs Poujade's avatar Loïs Poujade
Browse files

Use parent window to allow embed in another iframe

Closes #3
parent 622795e5
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,9 @@
if (!arguments)
return;
if (localOptions.links && localOptions.links[arguments[0]]) {
window.top.location.assign(localOptions.links[arguments[0]])
window.parent.location.assign(localOptions.links[arguments[0]])
} else {
window.top.location.assign(arguments[0]);
window.parent.location.assign(arguments[0]);
}
},
projectName: function(){
......
......@@ -4,7 +4,7 @@ var pubSub = null;
var popupPanel = new PopupPanelWidget({ canEdit: () => rekall_common.owner.canEdit });
window.onload = function() {
pubSub = window.top.PubSub;
pubSub = window.parent.PubSub;
window.app.rekall.Rekall('init', {
PubSub: pubSub
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment