diff options
author | Stephen Leavitt <stephen.leavitt@gmail.com> | 2010-08-22 01:46:09 +0000 |
---|---|---|
committer | Stephen Leavitt <stephen.leavitt@gmail.com> | 2010-08-22 01:46:09 +0000 |
commit | 3340f4242a6beefb39effaffaf7cae2785d5cb0b (patch) | |
tree | 4635a279c2feda601457e790c963bf6e1b356e82 | |
parent | 47055f5094bbb95222ac1629274e6446804d68a0 (diff) | |
download | web-socket-js-3340f4242a6beefb39effaffaf7cae2785d5cb0b.tar.gz |
Reverted changes from commits 47055f5094bbb95222ac1629274e6446804d68a0 and 4dbc5561edf96cd15b4b1c1e9d5098d01e6749cc
-rwxr-xr-x | web_socket.js | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/web_socket.js b/web_socket.js index d1d70b7..3d07a09 100755 --- a/web_socket.js +++ b/web_socket.js @@ -304,25 +304,11 @@ } var container = document.createElement("div"); container.id = "webSocketContainer"; - // Hides Flash box. Uses two different ways depending on the browser, because I haven't - // found a way to make every browser happy. Some rationales: - // - In IE, display: none or visibility: hidden prevents Flash from loading. - // - In Android browser, moving the box out of the screen prevents Flash from loading. - // - In Firefox with Flash blocker, setting negative zIndex prevents the user to click - // unblock button. + // Puts the Flash out of the window. Note that we cannot use display: none or visibility: hidden + // here because it prevents Flash from loading at least in IE. container.style.position = "absolute"; - if (window.navigator && window.navigator.userAgent && - window.navigator.userAgent.match(/Mobile Safari/)) { - // Android browser etc. - container.style.left = "0px"; - container.style.top = "0px"; - container.style.width = "1px"; - container.style.height = "1px"; - container.style.zIndex = -65535; - } else { - container.style.left = "-100px"; - container.style.top = "-100px"; - } + container.style.left = "-100px"; + container.style.top = "-100px"; var holder = document.createElement("div"); holder.id = "webSocketFlash"; container.appendChild(holder); |