History

GSF.Web: Changed default session token to "x-gsf-auth" since session gets added automatically and used for other purposes by IE/Edge

J. Ritchie Carroll committed 9 years ago

Commit 4fd27cf1 parent e0a7b626 files · +28 −99Browse files

Showing the changes to Source/Libraries/GSF.Web/Model/Scripts (1 of 6 files). Show all

Unified · Split

Source/Libraries/GSF.Web/Model/Scripts/gsf.web.client.js+6−2
@@ -129,8 +129,8 @@ function clearCachedCredentials(securedUrl, successCallback) { · 128 unmodified lines
129129
130130 if (successCallback)
131131 request.onreadystatechange = function() {
132− if (this.readyState == XMLHttpRequest.DONE)
133− successCallback(this.status == 401);
132+ if (this.readyState === XMLHttpRequest.DONE)
133+ successCallback(this.status === 401);
134134 };
135135
136136 request.send();
@@ -407,6 +407,10 @@ function isEmpty(str) { · 270 unmodified lines
407407 return !str || String(str).length === 0;
408408 }
409409
410+String.prototype.trimLeft = String.prototype.trimLeft || function () {
411+ return this.replace(/^\s+/,"");
412+}
413+
410414 String.prototype.truncate = function(limit) {
411415 const text = this.trim();
412416

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t