Skip to content

Commit c96f405

Browse files
committed
feat: add vuplex callback to mock login page
1 parent 2ca31ec commit c96f405

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WebviewTestPage/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ <h1>Continue to Passport Sample Application - Sandbox</h1>
353353
if (typeof uwb !== 'undefined' && uwb.ExecuteJsMethod) {
354354
uwb.ExecuteJsMethod('HandleLoginData', JSON.stringify(loginData));
355355
}
356+
if (window.vuplex && window.vuplex.postMessage) {
357+
window.vuplex.postMessage('HandleLoginData:' + JSON.stringify(loginData));
358+
}
356359
}
357360

358361
function handleEmailLogin(event) {
@@ -380,6 +383,9 @@ <h1>Continue to Passport Sample Application - Sandbox</h1>
380383
if (typeof uwb !== 'undefined' && uwb.ExecuteJsMethod) {
381384
uwb.ExecuteJsMethod('HandleLoginData', JSON.stringify(loginData));
382385
}
386+
if (window.vuplex && window.vuplex.postMessage) {
387+
window.vuplex.postMessage('HandleLoginData:' + JSON.stringify(loginData));
388+
}
383389
}
384390

385391
// Log when page loads

0 commit comments

Comments
 (0)