From de426c9a9257656d734281f7d3369fde78dbf317 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Sun, 23 Aug 2020 18:17:35 +0200 Subject: [PATCH] fix: login not working on non english browsers --- src/SASjs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SASjs.ts b/src/SASjs.ts index 6f95304..00d862a 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -291,7 +291,7 @@ export default class SASjs { public async checkSession() { const loginResponse = await fetch(this.loginUrl.replace(".do", "")); const responseText = await loginResponse.text(); - const isLoggedIn = /You have signed in./gm.test(responseText); + const isLoggedIn = /