Showing the changes to Source/Libraries/GSF.Web/Model/Scripts (1 of 6 files). Show all
Unified · Split
| @@ -129,8 +129,8 @@ function clearCachedCredentials(securedUrl, successCallback) { · 128 unmodified lines | ||
| 129 | 129 | |
| 130 | 130 | if (successCallback) |
| 131 | 131 | 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); | |
| 134 | 134 | }; |
| 135 | 135 | |
| 136 | 136 | request.send(); |
| @@ -407,6 +407,10 @@ function isEmpty(str) { · 270 unmodified lines | ||
| 407 | 407 | return !str || String(str).length === 0; |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | +String.prototype.trimLeft = String.prototype.trimLeft || function () { | |
| 411 | + return this.replace(/^\s+/,""); | |
| 412 | +} | |
| 413 | + | |
| 410 | 414 | String.prototype.truncate = function(limit) { |
| 411 | 415 | const text = this.trim(); |
| 412 | 416 | |