diff --git a/downloader.js b/downloader.js index 74ca1536..9c079977 100644 --- a/downloader.js +++ b/downloader.js @@ -55,9 +55,21 @@ function submitDotnet() { } } +function openGitHubIssues() { + const electron = require("electron") + console.debug("Opened GitHub issues page") + void electron.shell.openExternal("https://github.com/mmvanheusden/SteamDepotDownloaderGUI/issues/new") +} + +function openSteamDB() { + const electron = require("electron") + console.debug("Opened SteamDB instant search page") + void electron.shell.openExternal("https://steamdb.info/instantsearch/") +} window.addEventListener("DOMContentLoaded", () => { document.getElementById("alertbtn").addEventListener("click", submitDotnet) document.getElementById("downloadbtn").addEventListener("click", submitForm) -}) - + document.getElementById("smbtn1").addEventListener("click", openGitHubIssues) + document.getElementById("smbtn2").addEventListener("click", openSteamDB) +}) \ No newline at end of file diff --git a/index.html b/index.html index 85d0d75f..1938c030 100644 --- a/index.html +++ b/index.html @@ -94,9 +94,17 @@ -
- +
+
+
Support
+
SteamDB
diff --git a/main.js b/main.js index d0f0381b..66eb2d93 100644 --- a/main.js +++ b/main.js @@ -5,8 +5,8 @@ const createWindow = () => { const mainWindow = new BrowserWindow({ autoHideMenuBar: true, resizable: false, - width: 425, - height: 575, + width: 430, + height: 590, maximizable: false, webPreferences: { nodeIntegration: true, diff --git a/screenshot.png b/screenshot.png index 92865897..dc1c02f6 100644 Binary files a/screenshot.png and b/screenshot.png differ