mirror of
https://github.com/imgfloat/server.git
synced 2026-11-05 06:44:08 +00:00
Enable auto updates
This commit is contained in:
1 parent
6ea6361d0e
commit
2ff327cebf
4 files changed
+148
-3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
const { app, BrowserWindow } = require("electron");
|
||||
const { autoUpdater } = require("electron-updater");
|
||||
const path = require("path");
|
||||
const initialWindowWidthPx = 960;
|
||||
const initialWindowHeightPx = 640;
|
||||
@@ -87,6 +88,8 @@ function createWindow() {
|
||||
}
|
||||
|
||||
app.whenReady().then(() => {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
|
||||
let broadcastRect = { width: 0, height: 0 };
|
||||
const win = createWindow();
|
||||
win.loadURL(process.env["IMGFLOAT_CHANNELS_URL"] || "https://imgfloat.kruhlmann.dev/channels");
|
||||
|
||||
Reference in new issue
Block a user