ElectronElectron + node.jsでモーダルウィンドウを表示する Electron+node.jsでモーダルウィンドウを表示するBrowserWindowクラスを使用して親のウィンドウを表示します。const{app,BrowserWindow}=require('electron')functioncr...2021.02.21Electron
ElectronElectron + node.jsで入力部品にStoreに保存されている設定値を表示する Electron+node.jsで入力部品にStoreに保存されている設定値を表示するウィンドウアプリを初期表示時に、以前入力していた情報を保持していたいケースがあります。よくあるのはログイン情報だと思います。electron-storeモ...2021.02.10Electron
ElectronElectron + node.jsで作成したアプリでBrowserViewを使用する(Windows) Electron+node.jsで作成したアプリでBrowserViewを使用する(Windows)Electronにウェブコンテンツを埋め込む場合にBrowserViewを使用します。メインプロセスBrowserViewのインスタンスを生...2021.02.04Electron
ElectronElectron + node.jsで作成したアプリでドラッグアンドドロップする(Windows) Electron+node.jsで作成したアプリでドラッグアンドドロップする(Windows)ElectronでDrag&Dropを実装してみました。チュートリアルを見る限りドラッグするファイルはフルパスじゃないと駄目なようであまり使い道が...2021.02.01Electron
ElectronElectron + node.jsで作成したアプリで通知する(Windows) Electron+node.jsで作成したアプリで通知する(Windows)メインプロセスとレンダラープロセスで通知を行う事が出来ます。レンダラープロセスで通知するにはHTML5の通知を利用したNotificationAPIで実装することが...2021.01.23Electron
ElectronThe default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. ThedefaultofcontextIsolationisdeprecatedandwillbechangingfromfalsetotrueinafuturereleaseofElectron.Electronアプリ起動時に「Thede...2021.01.20Electron
ElectronElectron + node.jsで作成したアプリで永続化する(Windows) Electron + node.jsで作成したアプリで永続化する(Windows)2021.01.16Electron
ElectronElectron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with “unsafe-eval” enabled. This exposes users of this app to unnecessary security risks. Electronエラー開発時に以下警告がでる場合があります。パッケージしてEXEから起動すればこの警告は表示されません。ElectronSecurityWarning(InsecureContent-Security-Policy)This...2021.01.13Electron
ElectronElectron + node.jsで作成したプロジェクトをパッケージングしてEXEファイルを作成する(Windows) Electron+node.jsで作成したプロジェクトをパッケージングしてEXEファイルを作成する(Windows)前提npxがインストールされているものとします。Electronでアプリを作成したら、最後にパッケージングをします。これでE...2021.01.08Electron
ElectronElectron + node.jsの開発環境構築と新規プロジェクト作成(Windows) Electron+node.jsの開発環境構築と新規プロジェクト作成(Windows)前提npm,nodeはインストールされているものとします。新規プロジェクト作成nodeのプロジェクト作成します。npminit-ynpmi--save-d...2021.01.05Electron