Skip to content

Commit

Permalink
Attempt at fixing false crash reports
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jul 1, 2024
1 parent 42550d4 commit 2cfdcee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/windows/main/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
w.hide().catch(console.error);
await launchRoblox();
setTimeout(()=>{
app.exit(0)
app.exit()
},7000)
}
}
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/windows/main/ts/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {getMode} from './env';
import hotkeys from 'hotkeys-js';
events
.on('windowClose', () => {
app.exit(0).catch(console.error);
app.exit().catch(console.error);
})
.catch(console.error)
.then(() => {
Expand Down Expand Up @@ -35,13 +35,13 @@ hotkeys('ctrl+z,cmd+z', (e) => {

hotkeys('cmd+q,cmd+w', (e) => {
e.preventDefault();
app.exit(0);
app.exit();
});

hotkeys('ctrl+a,cmd+a', (e) => {
e.preventDefault();
document.execCommand('selectAll');
});
// hotkeys('ctrl+a,cmd+a', (e) => {
// e.preventDefault();
// document.execCommand('selectAll');
// });

export async function focusWindow() {
try {
Expand Down

0 comments on commit 2cfdcee

Please sign in to comment.