mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix electron
This commit is contained in:
parent
2694bcff67
commit
5705efc998
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.54.1-beta",
|
"version": "0.54.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.54.1-beta",
|
"version": "0.54.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
4
src/www
4
src/www
@ -51,7 +51,9 @@ async function startTrilium() {
|
|||||||
* its startup is slower than focusing the existing process/window. So in the end it works out without having
|
* its startup is slower than focusing the existing process/window. So in the end it works out without having
|
||||||
* to do complex evaluation.
|
* to do complex evaluation.
|
||||||
*/
|
*/
|
||||||
require("electron").app.requestSingleInstanceLock();
|
if (utils.isElectron()) {
|
||||||
|
require("electron").app.requestSingleInstanceLock();
|
||||||
|
}
|
||||||
|
|
||||||
app.set('port', port);
|
app.set('port', port);
|
||||||
app.set('host', host);
|
app.set('host', host);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user