Permalink
Browse files

Remove init

  • Loading branch information...
1 parent c6995f0 commit b741fb88a561afc3ed0d2be0cf06d90ccd2304de @pusewicz pusewicz committed May 11, 2010
Showing with 0 additions and 16 deletions.
  1. +0 −16 public/javascripts/init.js
@@ -1,16 +0,0 @@
-WebSocket.__swfLocation = "WebSocketMain.swf";
-
-$(document).observe("dom:loaded", function() {
- if ("WebSocket" in window) {
- console.log("WebSocket supported.");
- window.sonia = new Sonia("ws://localhost:8080");
-
- Event.observe(window, 'beforeunload', function() {
- window.sonia.saveChanges();
- });
- } else {
- console.log("WebSocket not supported.");
- }
-});
-
-

0 comments on commit b741fb8

Please sign in to comment.