aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/style/transition.js
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-01 19:56:38 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-01 19:56:38 +0200
commitf7992589cf45c699599a7ee5fc4634c9db16ff87 (patch)
tree973c2e0bc9d50a9e137f999b3c1f231e8471c4be /server/src/routes/ui/style/transition.js
parent551e62a6012284823d6b22a9257c3fae07de7fd9 (diff)
downloadjellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar
jellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar.bz2
jellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar.zst
error format depends on accept header
Diffstat (limited to 'server/src/routes/ui/style/transition.js')
-rw-r--r--server/src/routes/ui/style/transition.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/routes/ui/style/transition.js b/server/src/routes/ui/style/transition.js
index 7d39176..df09277 100644
--- a/server/src/routes/ui/style/transition.js
+++ b/server/src/routes/ui/style/transition.js
@@ -6,14 +6,14 @@
/// <reference lib="dom" />
const duration = 0.2
-globalThis.addEventListener("load", () => {
- patch_page()
-})
+// globalThis.addEventListener("load", () => {
+// patch_page()
+// })
-globalThis.addEventListener("popstate", (_e) => {
- transition_to(window.location.href, true)
- // transition_to(_e.state.href, true)
-})
+// globalThis.addEventListener("popstate", (_e) => {
+// transition_to(window.location.href, true)
+// // transition_to(_e.state.href, true)
+// })
function patch_page() {
document.querySelectorAll("a").forEach(el => {