12033: Avoid startsWith(), unsupported in test suite.
authorTom Clegg <tom@curoverse.com>
Wed, 30 Aug 2017 15:19:26 +0000 (11:19 -0400)
committerTom Clegg <tom@curoverse.com>
Wed, 30 Aug 2017 15:19:26 +0000 (11:19 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

apps/workbench/app/assets/javascripts/models/session_db.js

index 13409d9048d8a669380a79b810c00bdb2820c7c7..8330a68d188d9a4bd7d8947a23cbc83682dc17b5 100644 (file)
@@ -84,7 +84,7 @@ window.SessionDB = function() {
             // If there's a token and baseURL in the location bar (i.e.,
             // we just landed here after a successful login), save it and
             // scrub the location bar.
-            if (!document.location.search.startsWith('?'))
+            if (document.location.search[0] != '?')
                 return
             var params = {}
             document.location.search.slice(1).split('&').map(function(kv) {