Skip to content

Commit

Permalink
1.0.1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
DJTOMATO committed Aug 20, 2024
1 parent 24d4209 commit 8f483b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
background-size: cover;
background-repeat: no-repeat;
background-position: center;
overflow: hidden;
}

form {
Expand Down Expand Up @@ -49,4 +50,5 @@ <h1>Loading</h1>

</body>


</html>
13 changes: 12 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { app, BrowserWindow, ipcMain, nativeImage } = require('electron');
const { app, BrowserWindow, ipcMain, nativeImage, globalShortcut} = require('electron');
const axios = require('axios');
const path = require('path');
const RPC = require('discord-rpc');
Expand Down Expand Up @@ -56,6 +56,15 @@ async function createWindow() {
});

mainWindow.loadFile('index.html');
mainWindow.webContents.on('did-finish-load', () => {
globalShortcut.register('F5', () => {
mainWindow.reload();
});

globalShortcut.register('CommandOrControl+R', () => {
mainWindow.reload();
});
});
}

app.whenReady().then(createWindow);
Expand Down Expand Up @@ -115,9 +124,11 @@ app.on('window-all-closed', () => {
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();

}
});

app.on('before-quit', () => {
rpc.destroy();
});

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TaikoLena",
"version": "1.0.0",
"version": "1.0.1",
"description": "Taiko Lena with Discord Rich Presence integration",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 8f483b6

Please sign in to comment.