This commit is contained in:
2024-04-27 14:48:39 +03:00
commit 6ff2744c61
131 changed files with 5137 additions and 0 deletions

16
web/js/demo-js-interop.js Normal file
View File

@@ -0,0 +1,16 @@
(function(){
"use strict";
window._stateSet = function () {
window._stateSet = function() {
console.log("Call _stateSet only once");
};
let appState = window._appState;
let btn = document.getElementById('token');
btn.addEventListener('click', function() {
appState.onTokenReceived('token123');
})
}
}());