Commit 51695888 by Corey Koval

Sandbox Issue Fixed

parent c828af4a
...@@ -50,9 +50,10 @@ ...@@ -50,9 +50,10 @@
homeButton: false, homeButton: false,
timeline: false, timeline: false,
}); });
console.log(Cesium.InfoBox.container);
var iframe = document.getElementsByClassName('cesium-infoBox-iframe')[0]; viewer.infoBox.frame.setAttribute("sandbox", "allow-same-origin allow-popups allow-popups-to-escape-sandbox");
iframe.sandbox.add('allow-popups-to-escape-sandbox'); viewer.infoBox.frame.src = "about:blank";
var clock = new Cesium.Clock({ var clock = new Cesium.Clock({
clockStep : Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER clockStep : Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment