You've already forked AstralRinth
forked from didirus/AstralRinth
Minor bugfixes (#3338)
* Workaround linux firefox repeat issue * Nullcheck onShow/onHide functions
This commit is contained in:
@@ -43,7 +43,7 @@ function onModalHide() {
|
||||
if (props.showAdOnClose) {
|
||||
show_ads_window()
|
||||
}
|
||||
props.onHide()
|
||||
props.onHide?.()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -965,10 +965,6 @@ async function onKeyDown(event) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.repeat) {
|
||||
rCount.value = 0;
|
||||
}
|
||||
|
||||
if (event.key === "r") {
|
||||
rCount.value++;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ function show() {
|
||||
}
|
||||
|
||||
function hide() {
|
||||
props.onHide()
|
||||
props.onHide?.()
|
||||
actuallyShown.value = false
|
||||
setTimeout(() => {
|
||||
shown.value = false
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user