From 3c224aca53e1ecd9b76a7d55760a91f6ea275cb6 Mon Sep 17 00:00:00 2001 From: Maxim Sokhatsky Date: Thu, 9 Oct 2014 21:09:27 +0300 Subject: [PATCH] autoinit fix in samples --- priv/n2o.js | 2 -- samples/apps/n2o_sample/priv/static/spa/index.htm | 1 + samples/apps/n2o_sample/priv/static/spa/spa.htm | 1 + samples/apps/n2o_sample/priv/templates/index.html | 1 + samples/apps/n2o_sample/priv/templates/login.html | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/priv/n2o.js b/priv/n2o.js index 8388ca2a..c25af8c4 100644 --- a/priv/n2o.js +++ b/priv/n2o.js @@ -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, @@ -17,4 +16,3 @@ function N2O_start() { } //WebSocket = undefined; // test XHR fallback -//if (autoinit) N2O_start(); diff --git a/samples/apps/n2o_sample/priv/static/spa/index.htm b/samples/apps/n2o_sample/priv/static/spa/index.htm index e100bf78..c895b69d 100644 --- a/samples/apps/n2o_sample/priv/static/spa/index.htm +++ b/samples/apps/n2o_sample/priv/static/spa/index.htm @@ -16,6 +16,7 @@ + diff --git a/samples/apps/n2o_sample/priv/static/spa/spa.htm b/samples/apps/n2o_sample/priv/static/spa/spa.htm index da447bd8..d10f3216 100644 --- a/samples/apps/n2o_sample/priv/static/spa/spa.htm +++ b/samples/apps/n2o_sample/priv/static/spa/spa.htm @@ -17,5 +17,6 @@ + diff --git a/samples/apps/n2o_sample/priv/templates/index.html b/samples/apps/n2o_sample/priv/templates/index.html index 8bea7e2d..490448f7 100644 --- a/samples/apps/n2o_sample/priv/templates/index.html +++ b/samples/apps/n2o_sample/priv/templates/index.html @@ -15,5 +15,6 @@ + diff --git a/samples/apps/n2o_sample/priv/templates/login.html b/samples/apps/n2o_sample/priv/templates/login.html index 22236ae7..9c3cda66 100644 --- a/samples/apps/n2o_sample/priv/templates/login.html +++ b/samples/apps/n2o_sample/priv/templates/login.html @@ -63,5 +63,6 @@

Persistent Anonymous Logins

+