17914: Replaces deprecated substr() with substring().
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index 5b97596983e05e8d047212620565b135c491786e..548dbcaa13d6238d343560dc459ba5cb35e1ba7b 100644 (file)
@@ -64,7 +64,7 @@ export class AuthService {
         this.getStorage().setItem(API_TOKEN_KEY, token);
         const sp = token.split('/');
         if (sp.length === 3) {
-            this.getStorage().setItem(HOME_CLUSTER, sp[1].substr(0, 5));
+            this.getStorage().setItem(HOME_CLUSTER, sp[1].substring(0, 5));
         }
     }