--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Wed Apr 30 12:31:24 2014 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Wed Apr 30 12:32:09 2014 +0200
@@ -23,8 +23,8 @@
// Public function to set location's hash. Usefull because browser's security does not allow to get/set document.getElementById("my-iframe").contentWindow.location.hash
var setHash = function(e) {
// e.data is the string sent by the origin with postMessage.
- if(e.data.split('#')[0] == 'setHash') {
- window.location.setHash(e.data.split('#')[1]);
+ if(e.data.substr(0,1) == '#') {
+ window.location.hash = e.data.substr(1);
}
}
// we have to listen for 'message'