fix: profile roles

This commit is contained in:
BLoC
2025-02-12 14:44:58 +03:00
parent f44b9e5634
commit 970a30f436
34 changed files with 816 additions and 1292 deletions

View File

@@ -0,0 +1,22 @@
const String jsChannelAuthScript = '''
function initializeListeners() {
const emailInput = document.getElementById("inputEmail_main");
const passwordInput = document.getElementById("inputPassword_main");
if (emailInput && passwordInput) {
function sendToFlutter() {
const email = emailInput.value;
const password = passwordInput.value;
const data = JSON.stringify({ email: email, password: password });
if (window.FlutterChannel) {
window.FlutterChannel.postMessage(data);
}
}
emailInput.addEventListener("input", sendToFlutter);
passwordInput.addEventListener("input", sendToFlutter);
} else {
console.error("Email or Password input not found.");
}
}
document.addEventListener("DOMContentLoaded", initializeListeners);
initializeListeners();
''';