Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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=<your client id>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<your client id>
Expand Down
6 changes: 0 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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";
Expand All @@ -77,5 +72,4 @@ async function app() {
identifyUser(identityIdInput.value)
})
}
+
document.addEventListener("DOMContentLoaded", app);
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}