const fs = require('fs');
const electron = require('electron');
const { app } = electron;
const { BrowserWindow } = electron;

const isFullscreen = () => {
  const data = fs.readFileSync('.config/db', 'utf-8');
  if (data) {
    return JSON.parse(data).appProperties.fullscreen;
  } else {
    return true;
  }
}

let win;

function createWindow(fullscreen) {
  win = new BrowserWindow({
    minWidth: 800,
    minHeight: 600,
    icon: `${__dirname}/wanna.png`,
  });
  if (isFullscreen()) {
    win.maximize();
  }
  win.loadURL('http://localhost:3000');
}

app.on('ready', () => {
  createWindow();
});

@@ -53,24 +53,25 @@
 electron');%0A
+%0A
 const %7B app 
@@ -280,18 +280,9 @@
 %0A  %7D
- else %7B%0A  
+%0A
   re
@@ -296,13 +296,10 @@
 ue;%0A
-  %7D%0A
 %7D
+;
 %0A%0Ale
@@ -328,26 +328,16 @@
 eWindow(
-fullscreen
 ) %7B%0A  wi

Fix eslint errors of main.js