Answer the question
In order to leave comments, you need to log in
How to save a change in Electron?
There is a program https://jsfiddle.net/BloodStorm/60mgsLv6/ threw it into electron and launched it through main.js, in general, the question is how to save the change that I made while the program was running, let's say I deleted or added some kind of task, like everyone else this is to save after the program exits.
//Файл main.js
const electron = require("electron");
const app = electron.app;
const path = require("path");
const url = require("url");
const BrowserWindow = electron.BrowserWindow;
var mainWindow;
app.on("ready", function() {
mainWindow = new BrowserWindow({
width: 1000,
height: 800,
backgroundColor: "white"
});
mainWindow.loadURL('file://' + __dirname + '/index.html');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question