Skip to content

Commit

Permalink
autoinit fix in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 9, 2014
1 parent 0b8ef0f commit 3c224ac
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions priv/n2o.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// N2O CORE

var active = false,
autoinit = true,
protocol = window.location.protocol == 'https:' ? "wss://" : "ws://",
querystring = window.location.pathname + window.location.search,
host = null == transition.host ? window.location.hostname : transition.host,
Expand All @@ -17,4 +16,3 @@ function N2O_start() {
}

//WebSocket = undefined; // test XHR fallback
//if (autoinit) N2O_start();
1 change: 1 addition & 0 deletions samples/apps/n2o_sample/priv/static/spa/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script src='/n2o/bullet.js'></script>
<script src='/n2o/utf8.js'></script>
<script src='/n2o/n2o.js'></script>
<script>N2O_start();</script>
</body>
</html>

1 change: 1 addition & 0 deletions samples/apps/n2o_sample/priv/static/spa/spa.htm
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<script src='/n2o/bullet.js'></script>
<script src='/n2o/utf8.js'></script>
<script src='/n2o/n2o.js'></script>
<script>N2O_start();</script>
</body>
</html>
1 change: 1 addition & 0 deletions samples/apps/n2o_sample/priv/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
<script src='/n2o/bullet.js'></script>
<script src='/n2o/utf8.js'></script>
<script src='/n2o/n2o.js'></script>
<script>N2O_start();</script>
</body>
</html>
1 change: 1 addition & 0 deletions samples/apps/n2o_sample/priv/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ <h2>Persistent Anonymous Logins</h2>
<script src='/n2o/bullet.js'></script>
<script src='/n2o/utf8.js'></script>
<script src='/n2o/n2o.js'></script>
<script>N2O_start();</script>
</body>
</html>

0 comments on commit 3c224ac

Please sign in to comment.