From e53010604d7bdf50c55e05949015e7c7b9396d7e Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 9 Jan 2015 13:23:45 -0800 Subject: [PATCH] Update forcetk.js to support Windows8 in phonegap Protocol in Windows8 app is ms-appx: not file: --- forcetk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forcetk.js b/forcetk.js index 3b94914..b6d37fe 100644 --- a/forcetk.js +++ b/forcetk.js @@ -59,7 +59,7 @@ if (forcetk.Client === undefined) { this.clientId = clientId; this.loginUrl = loginUrl || 'https://login.salesforce.com/'; if (typeof proxyUrl === 'undefined' || proxyUrl === null) { - if (location.protocol === 'file:') { + if (location.protocol === 'file:' || location.protocol === 'ms-appx:') { // In PhoneGap this.proxyUrl = null; } else { @@ -484,4 +484,4 @@ if (forcetk.Client === undefined) { return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl) , callback, error); } -} \ No newline at end of file +}