Skip to content

Commit

Permalink
Mozilla WebSockets do not require a prefix anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 13, 2012
1 parent 31aa184 commit ddffb32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/websocket.pl
Expand Up @@ -22,10 +22,7 @@
% my $url = url_for->to_abs->scheme('ws');
%= javascript begin
var ws;
if ("MozWebSocket" in window) {
ws = new MozWebSocket('<%= $url %>');
}
else if ("WebSocket" in window) {
if ("WebSocket" in window) {
ws = new WebSocket('<%= $url %>');
}
if(typeof(ws) !== 'undefined') {
Expand Down

0 comments on commit ddffb32

Please sign in to comment.