summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoldquest <tjwelde@gmail.com>2012-12-06 17:51:43 +0100
committergoldquest <tjwelde@gmail.com>2012-12-06 17:51:43 +0100
commit1380fda2b2d879d6569a0613e82ac3cc70f839b4 (patch)
treed557b1830aa212140355adf7f6872c4feebe9fb3
parent0908caaf0d2c63358d392d3311befe5e854c4e85 (diff)
downloadetherpad-lite-1380fda2b2d879d6569a0613e82ac3cc70f839b4.zip
use the parent window, not the top
-rw-r--r--src/node/handler/ImportHandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js
index 6bf223f2..db82eac7 100644
--- a/src/node/handler/ImportHandler.js
+++ b/src/node/handler/ImportHandler.js
@@ -176,6 +176,6 @@ exports.doImport = function(req, res, padId)
ERR(err);
//close the connection
- res.send("<script type='text/javascript' src='/static/js/jquery.js'></script><script> if ( (!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf(\"1.8.\") == 0)) ){document.domain = document.domain;}var impexp = window.top.require('/pad_impexp').padimpexp.handleFrameCall('" + status + "');</script>", 200);
+ res.send("<script type='text/javascript' src='/static/js/jquery.js'></script><script> if ( (!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf(\"1.8.\") == 0)) ){document.domain = document.domain;}var impexp = window.parent.require('/pad_impexp').padimpexp.handleFrameCall('" + status + "');</script>", 200);
});
}