diff --git a/js/neutralino-bridge.js b/js/neutralino-bridge.js index d94b72e..5682e9c 100644 --- a/js/neutralino-bridge.js +++ b/js/neutralino-bridge.js @@ -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, }; diff --git a/public/neutralino_loader.html b/public/neutralino_loader.html index fc890fd..3b46bc5 100644 --- a/public/neutralino_loader.html +++ b/public/neutralino_loader.html @@ -1,147 +1,151 @@ - + - - - - Monochrome Shell - - - - - - - - - - - + + + + + + - - - \ No newline at end of file + case 'NL_WINDOW_SET_TITLE': + try { + await Neutralino.window.setTitle(event.data.title); + } catch (e) { + console.error('[Shell] Set title failed:', e); + } + break; + } + }); + + +