How to prevent multiple instances in Electron

后端 未结 3 884
一整个雨季
一整个雨季 2021-02-01 13:08

I do not know if this is possible but I might as well give it a chance and ask. I\'m doing an Electron app and I\'d like to know if it is possible to have no more than a single

3条回答
  •  孤城傲影
    2021-02-01 14:00

    Use the makeSingleInstance function in the app module, there's even an example in the docs.

提交回复
热议问题