style: auto-fix linting issues

This commit is contained in:
JulienMaille 2026-02-10 17:46:26 +00:00 committed by github-actions[bot]
parent 89548fa0d3
commit 63e9a71456
2 changed files with 138 additions and 134 deletions

View file

@ -65,7 +65,7 @@ const _window = {
},
setTitle: async (title) => {
window.parent.postMessage({ type: 'NL_WINDOW_SET_TITLE', title }, '*');
}
},
};
// Expose generically for other modules
@ -75,5 +75,5 @@ export default {
events,
extensions,
app,
window: _window
window: _window,
};

View file

@ -1,8 +1,7 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="UTF-8" />
<title>Monochrome Shell</title>
<style>
body,
@ -47,7 +46,7 @@
const initFrame = async () => {
// Wait a tick for globals
await new Promise(r => setTimeout(r, 100));
await new Promise((r) => setTimeout(r, 100));
let port = window.NL_PORT || sessionStorage.getItem('NL_PORT');
// Fallback if missing (shouldn't happen after init)
@ -71,11 +70,14 @@
// Forward generic Neutralino events to the Iframe
const forwardEvent = (eventName, detail) => {
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage({
iframe.contentWindow.postMessage(
{
type: 'NL_EVENT',
eventName: eventName,
detail: detail
}, '*');
detail: detail,
},
'*'
);
}
};
@ -130,18 +132,20 @@
const isMax = await Neutralino.window.isMaximized();
if (isMax) Neutralino.window.unmaximize();
else Neutralino.window.maximize();
} catch (e) { console.error('[Shell] Window toggle failed:', e); }
} catch (e) {
console.error('[Shell] Window toggle failed:', e);
}
break;
case 'NL_WINDOW_SET_TITLE':
try {
await Neutralino.window.setTitle(event.data.title);
} catch (e) { console.error('[Shell] Set title failed:', e); }
} catch (e) {
console.error('[Shell] Set title failed:', e);
}
break;
}
});
</script>
</body>
</html>