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/main.js b/main.js index 7477fb9..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) @@ -64,10 +63,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 +72,4 @@ async function app() { identifyUser(identityIdInput.value) }) } -+ document.addEventListener("DOMContentLoaded", app); 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" } }