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
129 129
130 if (successCallback)130 if (successCallback)
131 request.onreadystatechange = function() {131 request.onreadystatechange = function() {
132 if (this.readyState == XMLHttpRequest.DONE)132 if (this.readyState === XMLHttpRequest.DONE)
133 successCallback(this.status == 401);133 successCallback(this.status === 401);
134 };134 };
135 135
136 request.send();136 request.send();
@@ -407,6 +407,10 @@ function isEmpty(str) { · 270 unmodified lines
407 return !str || String(str).length === 0;407 return !str || String(str).length === 0;
408}408}
409 409
410String.prototype.trimLeft = String.prototype.trimLeft || function () {
411 return this.replace(/^\s+/,"");
412}
413
410String.prototype.truncate = function(limit) {414String.prototype.truncate = function(limit) {
411 const text = this.trim();415 const text = this.trim();
412 416

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