Compare commits

..

No commits in common. "593aac4ebc1319d3a6911387ffef92197275ad13" and "1b47a154f26d8e7e8ab1b38649df981df11455a8" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
//// ////
// version: f4b8a27 // version: 1a11bd0
// src/js/dom.ts // src/js/dom.ts
var content2 = $("content"); var content2 = $("content");
@ -247,8 +247,6 @@ function handleClick(e) {
const target = e.target; const target = e.target;
if (!(target instanceof HTMLElement)) if (!(target instanceof HTMLElement))
return; return;
if (target.id.endsWith("-button"))
e.preventDefault();
switch (target.id) { switch (target.id) {
case "back-button": case "back-button":
navigateBack(); navigateBack();
@ -271,6 +269,7 @@ function handleClick(e) {
default: default:
return; return;
} }
e.preventDefault();
} }
function handlePageLoad() {} function handlePageLoad() {}
function setAddress(url) { function setAddress(url) {

View File

@ -114,9 +114,6 @@ function handleClick(e: MouseEvent) {
const target = e.target const target = e.target
if (!(target instanceof HTMLElement)) return if (!(target instanceof HTMLElement)) return
if (target.id.endsWith("-button"))
e.preventDefault()
switch (target.id) { switch (target.id) {
case "back-button": case "back-button":
navigateBack(); break navigateBack(); break
@ -133,6 +130,8 @@ function handleClick(e: MouseEvent) {
default: default:
return return
} }
e.preventDefault()
} }
function handlePageLoad() { function handlePageLoad() {