From: Darren Date: Wed, 3 Oct 2012 12:01:37 +0000 (+0100) Subject: Correctly detecting running from file: X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9437a6f08a2bd4d031898c8e312ad01a079c2925;p=KiwiIRC.git Correctly detecting running from file: --- diff --git a/client_backbone/dev/model_application.js b/client_backbone/dev/model_application.js index f42dd44..d54d018 100755 --- a/client_backbone/dev/model_application.js +++ b/client_backbone/dev/model_application.js @@ -75,8 +75,8 @@ kiwi.model.Application = Backbone.Model.extend(new (function () { this.detectKiwiServer = function () { // If running from file, default to localhost:7777 by default - if (window.location.protocol === 'file') { - this.kiwi_server = 'http://localhost:7777'; + if (window.location.protocol === 'file:') { + this.kiwi_server = 'http://localhost:7778'; } else { // Assume the kiwi server is on the same server this.kiwi_server = window.location.protocol + '//' + window.location.host;