ipcMain.handle('steam-open', async (event, browserUrl) => {
// TODO: Why are we doing this? This requires everyone to have steam installed, and gives a cryptic protocol error if they don't.
// If we must do this we should check for a steam installation, eat least
const steamUrl = browserUrl.replace(/http(s){0,1}:\/\/[\w.]*steampowered.com\/app/i, 'steam://url/StoreAppPage')
if (app.getApplicationNameForProtocol(steamUrl)) {
await shell.openExternal(steamUrl)
} else {
ndex 804c2ff..6efc75a 100644
++ b/src/components/SystemPages/Log.vue
Why are we doing this? This requires everyone to have steam installed, and gives a cryptic protocol error if they don't.
If we must do this we should check for a steam installation, eat least
https://github.com/Bambosh/unofficial-homestuck-collection/blob/611ca34fe82644796c901f114e6b35b6db08472b/src/background.js#L542
198a89f6a4b8c30f87507148b8ce1b9cf5e6fec2