Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions forcetk.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ if (forcetk.Client === undefined) {
* Set a session token and the associated metadata in the client.
* @param sessionId a salesforce.com session ID. In a Visualforce page,
* use '{!$Api.sessionId}' to obtain a session ID.
* @param [apiVersion="v29.0"] Force.com API version
* @param [apiVersion="v31.0"] Force.com API version
* @param [instanceUrl] Omit this if running on Visualforce; otherwise
* use the value from the OAuth token.
*/
forcetk.Client.prototype.setSessionToken = function (sessionId, apiVersion, instanceUrl) {
'use strict';
this.sessionId = sessionId;
this.apiVersion = (apiVersion === undefined || apiVersion === null)
? 'v29.0' : apiVersion;
? 'v31.0' : apiVersion;
if (instanceUrl === undefined || instanceUrl === null) {
this.visualforce = true;

Expand Down