mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-04-17 05:26:04 +02:00
update styles and html for online mods page, add open external link function
This commit is contained in:
6
main.js
6
main.js
@@ -1,4 +1,4 @@
|
||||
const { app, BrowserWindow , ipcMain, dialog} = require('electron/main');
|
||||
const { app, BrowserWindow , ipcMain, dialog, shell} = require('electron/main');
|
||||
const path = require('node:path');
|
||||
const Store = require('electron-store').default;
|
||||
const fs = require('fs/promises');
|
||||
@@ -94,4 +94,8 @@ ipcMain.handle('import-data', async () => {
|
||||
await fs.unlink(dataPath)
|
||||
}
|
||||
await fs.copyFile(filePaths[0], dataPath,fs.constants.COPYFILE_EXCL)
|
||||
})
|
||||
|
||||
ipcMain.handle('open-link', async (event, link) => {
|
||||
await shell.openExternal(link)
|
||||
})
|
||||
Reference in New Issue
Block a user