Fix a bug allowing you to do something that isn't normally allowed in popup (it doesn't matter much but it's a bug stil)
This commit is contained in:
@@ -438,7 +438,7 @@ export default function RootLayout ({
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onKeyDown={e => {
|
onKeyDown={e => {
|
||||||
if (showPopup && e.key === 'Escape') {
|
if (showPopup && e.key === 'Escape') {
|
||||||
if (popupMode == 0 && selectedGame) {
|
if (popupMode == 0 && selectedGame && pathname === '/') {
|
||||||
setSelectedGame(null)
|
setSelectedGame(null)
|
||||||
setSelectedVersionList([])
|
setSelectedVersionList([])
|
||||||
} else if (viewingInfoFromDownloads) {
|
} else if (viewingInfoFromDownloads) {
|
||||||
|
|||||||
Reference in New Issue
Block a user