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++;

View File

@@ -67,7 +67,7 @@ function show() {
}
function hide() {
props.onHide()
props.onHide?.()
actuallyShown.value = false
setTimeout(() => {
shown.value = false

View File

@@ -109,7 +109,7 @@ function show(event?: MouseEvent) {
}
function hide() {
props.onHide()
props.onHide?.()
visible.value = false
document.body.style.overflow = ''
document.body.style.paddingRight = ''