Commit 0b7bc4e9 authored by Joel Martin's avatar Joel Martin

Only append random string to swf path in IE.

Issue https://github.com/kanaka/noVNC/issues/69

Thanks https://github.com/EdSchouten for the catch.

Import from websockify 9a2b50d8.
parent 8a7ce3da
...@@ -32,7 +32,7 @@ if (window.WebSocket) { ...@@ -32,7 +32,7 @@ if (window.WebSocket) {
end = "'><\/script>", extra = ""; end = "'><\/script>", extra = "";
WEB_SOCKET_SWF_LOCATION = get_INCLUDE_URI() + WEB_SOCKET_SWF_LOCATION = get_INCLUDE_URI() +
"web-socket-js/WebSocketMain.swf?" + Math.random(); "web-socket-js/WebSocketMain.swf?";
if (Util.Engine.trident) { if (Util.Engine.trident) {
Util.Debug("Forcing uncached load of WebSocketMain.swf"); Util.Debug("Forcing uncached load of WebSocketMain.swf");
WEB_SOCKET_SWF_LOCATION += "?" + Math.random(); WEB_SOCKET_SWF_LOCATION += "?" + Math.random();
......
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