fix: Electron desktop not logging in

This commit is contained in:
LukeGus
2025-11-01 16:30:28 -05:00
parent 00e19f054f
commit dd19b2b990
2 changed files with 64 additions and 39 deletions

View File

@@ -93,6 +93,11 @@ export function ElectronLoginForm({
try {
const injectedScript = `
(function() {
window.IS_ELECTRON = true;
if (typeof window.electronAPI === 'undefined') {
window.electronAPI = { isElectron: true };
}
let hasNotified = false;
function postJWTToParent(token, source) {