Skip to content

Commit e530106

Browse files
committed
Update forcetk.js to support Windows8 in phonegap
Protocol in Windows8 app is ms-appx: not file:
1 parent 663af70 commit e530106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forcetk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (forcetk.Client === undefined) {
5959
this.clientId = clientId;
6060
this.loginUrl = loginUrl || 'https://login.salesforce.com/';
6161
if (typeof proxyUrl === 'undefined' || proxyUrl === null) {
62-
if (location.protocol === 'file:') {
62+
if (location.protocol === 'file:' || location.protocol === 'ms-appx:') {
6363
// In PhoneGap
6464
this.proxyUrl = null;
6565
} else {
@@ -484,4 +484,4 @@ if (forcetk.Client === undefined) {
484484
return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl)
485485
, callback, error);
486486
}
487-
}
487+
}

0 commit comments

Comments
 (0)