Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8+ 使用 Flash 兼容。 #66

Merged
merged 8 commits into from
Apr 14, 2015
Merged

IE8+ 使用 Flash 兼容。 #66

merged 8 commits into from
Apr 14, 2015

Conversation

wangxiao
Copy link
Contributor

No description provided.

@wangxiao wangxiao mentioned this pull request Apr 13, 2015
@wangxiao
Copy link
Contributor Author

麻烦宁姐 @sunng87 review 下。

<script type="text/javascript" src="../../plugin/web-socket-js/swfobject.js"></script>
<script type="text/javascript" src="../../plugin/web-socket-js/web_socket.js"></script>
<script type="text/javascript">
// Let the library know where WebSocketMain.swf is:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中文注释

@wangxiao
Copy link
Contributor Author

已经修改,看下。

auth: options.auth
auth: options.auth,
// 通过判断插件需要加载的 falsh 路径判断是否要关掉安全连接,在需要兼容 flash 的时候需要关掉,默认开启。
secure: win.WEB_SOCKET_SWF_LOCATION ? false : true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

拿这个属性判断会有点问题,因为这个属性是无论如何都会声明的,具体用不用取决于 web_socket.js 里 8-16行的判断
所以需要用一个 web_socket.js 里 16 行之后产生的数据来判断。

@wangxiao
Copy link
Contributor Author

这次应该可以了。

@wangxiao
Copy link
Contributor Author

修改好了。

@sunng87
Copy link
Contributor

sunng87 commented Apr 14, 2015

👍

sunng87 added a commit that referenced this pull request Apr 14, 2015
IE8+ 使用 Flash 兼容。
@sunng87 sunng87 merged commit cba3b08 into leancloud:master Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants