Skip to content

Commit

Permalink
修改io不存在的情况js报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Mar 7, 2015
1 parent 537c2bf commit 81c44f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/nodeppt.control.socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Slide.Control.add('socket', function(S, broadcast) {
});
}

if (io && io.connect) {
if (window.io && io.connect) {
//已经存在
Socket.connect();
} else {
Expand Down

0 comments on commit 81c44f5

Please sign in to comment.