D
D
Demigodd2017-07-06 10:20:45
JavaScript
Demigodd, 2017-07-06 10:20:45

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

1 answer(s)
S
Sergey Sokolov, 2017-07-06
@Demigodd

electron-json-storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question