Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit c212a32

Browse files
committed
minor change from that to this
1 parent 51c4388 commit c212a32

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

forcetk.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,16 @@ if (forcetk.Client === undefined) {
195195
**/
196196
forcetk.Client.prototype.getChatterFile = function(path,mimeType,callback,error,retry) {
197197
var that = this;
198-
199198
var url = this.instanceUrl + path;
200199

201200
var request = new XMLHttpRequest();
202-
203-
201+
204202
request.open("GET", (this.proxyUrl !== null) ? this.proxyUrl: url, true);
205203
request.responseType = "arraybuffer";
206204

207205
request.setRequestHeader(that.authzHeader, "OAuth " + that.sessionId);
208206
request.setRequestHeader('X-User-Agent', 'salesforce-toolkit-rest-javascript/' + that.apiVersion);
209-
if (that.proxyUrl !== null) {
207+
if (this.proxyUrl !== null) {
210208
request.setRequestHeader('SalesforceProxy-Endpoint', url);
211209
}
212210

0 commit comments

Comments
 (0)