Minor bugfixes (#3338)

* Workaround linux firefox repeat issue

* Nullcheck onShow/onHide functions
This commit is contained in:
Prospector
2025-03-05 12:28:48 -08:00
committed by GitHub
parent ee4d7c88f1
commit 79279479b1
4 changed files with 3 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ function onModalHide() {
if (props.showAdOnClose) {
show_ads_window()
}
props.onHide()
props.onHide?.()
}
</script>

View File

@@ -965,10 +965,6 @@ async function onKeyDown(event) {
return;
}
if (!event.repeat) {
rCount.value = 0;
}
if (event.key === "r") {
rCount.value++;