From cf3d20689b78cad3959582e8eca3b788da9a3f3a Mon Sep 17 00:00:00 2001 From: Levhita Date: Fri, 21 Jun 2024 15:57:11 -0600 Subject: [PATCH 1/3] removing unneded warmup --- main.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.js b/main.js index 7477fb9..169f55d 100644 --- a/main.js +++ b/main.js @@ -64,10 +64,6 @@ async function app() { // apiKey // Enable for 1:N }); - // Incode web_sdk need to preload some core component before being usable - mainContainer.innerHTML = "Warming up..."; - await onBoarding.warmup(); - // Empty the message and starting the flow mainContainer.innerHTML = ""; loginContainer.style.display="flex"; @@ -77,5 +73,5 @@ async function app() { identifyUser(identityIdInput.value) }) } -+ + document.addEventListener("DOMContentLoaded", app); From ecc5052099d30126ffed2a225c86456c57675cc5 Mon Sep 17 00:00:00 2001 From: Levhita Date: Fri, 21 Jun 2024 15:57:26 -0600 Subject: [PATCH 2/3] upgrading packages --- .env.example | 2 +- README.md | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index ff860d2..46c7639 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ VITE_TOKEN_SERVER_URL=/api VITE_API_URL=https://demo-api.incodesmile.com -VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.71.0.js +VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.72.0.js #Enable for 1:N #VITE_CLIENT_ID= diff --git a/README.md b/README.md index f94d6bb..0d52be0 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Copy `.env.example` to `.env.local` and add your local values ``` VITE_TOKEN_SERVER_URL=/api VITE_API_URL=https://demo-api.incodesmile.com -VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.71.0.js +VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.72.0.js #Enable for 1:N #VITE_CLIENT_ID= diff --git a/package.json b/package.json index 33d5795..cb815be 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^4.5.3", - "vite-plugin-mkcert": "^1.16.0" + "vite": "^5.3.1", + "vite-plugin-mkcert": "^1.17.5" }, "dependencies": { - "dotenv": "^16.3.1" + "dotenv": "^16.4.5" } } From 997d4f6b5816eeadaf6232a013a372c8b6c8e4ba Mon Sep 17 00:00:00 2001 From: Levhita Date: Fri, 21 Jun 2024 15:59:23 -0600 Subject: [PATCH 3/3] clean up --- main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.js b/main.js index 169f55d..f1ad05d 100644 --- a/main.js +++ b/main.js @@ -5,7 +5,6 @@ const mainContainer = document.getElementById("app"); const loginContainer = document.getElementById("login"); const loginButton = document.getElementById("login-button"); - function showError(e=null) { mainContainer.innerHTML = "Something Went Wrong, see console for details..."; console.log(e) @@ -73,5 +72,4 @@ async function app() { identifyUser(identityIdInput.value) }) } - document.addEventListener("DOMContentLoaded", app);