Skip to content

Commit af8cd01

Browse files
committed
* showSms comment
1 parent db4b654 commit af8cd01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vite-web-sdk/main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Lets put all the variables needed for all modules in the global scope
33
const tokenServerURL= import.meta.env.VITE_TOKEN_SERVER_URL;
44
const localServerUrl= import.meta.env.VITE_LOCAL_SERVER_URL;
5+
56
let incode;
67
let session;
78
const container = document.getElementById("camera-container");
@@ -34,7 +35,8 @@ function renderRedirectToMobile(){
3435
finish();
3536
},
3637
session: session,
37-
url: `${localServerUrl}?uuid=${session.uuid}`
38+
url: `${localServerUrl}?uuid=${session.uuid}`,
39+
// showSms: false, //uncomment if you want to remove the SMS feature
3840
});
3941
} else {
4042
renderUserConsent();
@@ -103,8 +105,7 @@ async function app() {
103105
const clientId = import.meta.env.VITE_CLIENT_ID;
104106
incode = window.OnBoarding.create({
105107
clientId: clientId,
106-
apiURL: apiURL,
107-
theme: {},
108+
apiURL: apiURL
108109
});
109110

110111
// Incode web_sdk need to preload some core component before being usable

0 commit comments

Comments
 (0)