From df8c697e29e94e0d2d3b111468bf21eec6b086f4 Mon Sep 17 00:00:00 2001
From: Jocke4f <39942694+Jocke4f@users.noreply.github.com>
Date: Sun, 25 Aug 2024 17:28:59 +0200
Subject: [PATCH] Change from Common JS to ES Modules
To be able to upgrade to a later axios package must the code be changed from CommonJS to ES Modules.
---
main.js | 10 +++++-----
package-lock.json | 19 ++++++++++---------
package.json | 5 +++--
3 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/main.js b/main.js
index 2e844ad7..87b37753 100644
--- a/main.js
+++ b/main.js
@@ -1,8 +1,8 @@
// This is the electron startup script
-const { app, BrowserWindow, Tray, Menu, dialog, ipcMain, powerMonitor } = require('electron');
-const { autoUpdater } = require("electron-updater");
-const { nativeImage } = require('electron/common');
-const path = require("path");
+import { app, BrowserWindow, Tray, Menu, dialog, ipcMain, powerMonitor } from 'electron';
+import { autoUpdater } from "electron-updater";
+import { nativeImage } from 'electron/common';
+import path from "path";
let server;
let mainWindow;
@@ -166,7 +166,7 @@ function checkForUpdates() {
-
+
There's an update available for TallyArbiter. Do you want to download and install it?