Correctly detecting running from file:
authorDarren <darren@darrenwhitlen.com>
Wed, 3 Oct 2012 12:01:37 +0000 (13:01 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 3 Oct 2012 12:01:37 +0000 (13:01 +0100)
client_backbone/dev/model_application.js

index f42dd44d6d8e9e5963c201ecf45900735bb36394..d54d0188e4c772cd541157e91efa4cf93fb56e52 100755 (executable)
@@ -75,8 +75,8 @@ kiwi.model.Application = Backbone.Model.extend(new (function () {
 \r
     this.detectKiwiServer = function () {\r
         // If running from file, default to localhost:7777 by default\r
-        if (window.location.protocol === 'file') {\r
-            this.kiwi_server = 'http://localhost:7777';\r
+        if (window.location.protocol === 'file:') {\r
+            this.kiwi_server = 'http://localhost:7778';\r
         } else {\r
             // Assume the kiwi server is on the same server\r
             this.kiwi_server = window.location.protocol + '//' + window.location.host;\r