mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 21:50:42 -10:00
14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
|
|
var count = 0;
|
|
|
|
setTimeout(function() {
|
|
window.addEventListener("message", function(msg) {
|
|
if (++count > 1) {
|
|
self.postMessage(msg.data);
|
|
}
|
|
else msg.source.postMessage(msg.data, '*');
|
|
});
|
|
|
|
document.getElementById('inner').src = iframePath;
|
|
}, 0);
|