Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
</p>
- <p>補足、このソフトを開いた直後に閉じるとエラーが起きます。ソフトウェアフレームワーク仕様なので修正はできません。(timerなんちゃらとか出てくるけど無視で....</p>
+ <p>補足、このソフトを開いた直後に閉じるとエラーが起きます。</p>
</div>
<div class="tab_content" id="kihon_content">
kihonの内容がここに入ります
minHeight: 600,
maxWidth: 600,
maxHeight: 800,
- frame: false,
+ frame: true,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
enableRemoteModule: true,
nodeIntegration: false,
},
- titleBarStyle: "hidden"//theme
})
const menu = Menu.buildFromTemplate(exampleMenuTemplate());
Menu.setApplicationMenu(menu);
// Node.jsのすべてのAPIがプリロードプロセスで利用できます。
// !Chrome の拡張機能と同じサンドボックスを持っています。
-const customTitlebar = require('custom-electron-titlebar');
window.addEventListener('DOMContentLoaded', () => {
-
-
- new customTitlebar.Titlebar({
- backgroundColor: customTitlebar.Color.fromHex('#444'),
- });
- titlebar.updateBackground(new Color(new RGBA(0, 0, 0, .7)));
-
-
- new customTitlebar.Titlebar()
-
const replaceText = (selector, text) => {
- const element = document.getElementById(selector)
- if (element) element.innerText = text
+ const element = document.getElementById(selector)
+ if (element) element.innerText = text
}
-
- for (const type of ['chrome', 'node', 'electron']) {
- replaceText(`${type}-version`, process.versions[type])
+
+ for (const dependency of ['chrome', 'node', 'electron']) {
+ replaceText(`${dependency}-version`, process.versions[dependency])
}
-})
-
+ })
\ No newline at end of file