Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
[Change] ランクマッチを閉じることができない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiro527 committed Feb 8, 2022
1 parent 1ae1161 commit 8a91aac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/js/util/wm.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ exports.gameWindow = class {
brWin.on('page-title-updated', (e) => {
e.preventDefault();
});
brWin.webContents.on('will-prevent-unload', (e) => {
if (!dialog.showMessageBoxSync({
buttons: [langPack.dialog.yes, langPack.dialog.no],
title: langPack.dialog.social.leavePageTitle,
message: langPack.dialog.social.leavePageMessage,
noLink: true,
})) {
e.preventDefault();
}
});
brWin.on('close', () => {
const isMaximized = brWin.isMaximized();
const isFullScreen = brWin.isFullScreen();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laf",
"version": "6.0.2",
"version": "6.0.3",
"description": "Lite and Fast Krunker Client",
"main": "app/main.js",
"scripts": {
Expand Down

0 comments on commit 8a91aac

Please sign in to comment.