Vite WebSDK Example
+ Permission Example
+
diff --git a/main.js b/main.js
index bc6c56f..73a1d72 100644
--- a/main.js
+++ b/main.js
@@ -3,6 +3,8 @@ import { fakeBackendStart, fakeBackendFinish } from './fake_backend'
let incode;
let incodeSession;
const container = document.getElementById("camera-container");
+const permissionButton = document.getElementById("ask-permission");
+const permissionScreen = document.getElementById("permission-screen");
function showError(e=null) {
container.innerHTML = "
There was an error
";
@@ -57,17 +59,17 @@ function finishOnboarding() {
// Finishing the session works along with the configuration in the flow
// webhooks and business rules are ran here.
fakeBackendFinish(incodeSession.token)
- .then((response) => {
- console.log(response);
- const container = document.getElementById("finish-container");
- container.innerHTML = "