rollback: go:embed for static files

This commit is contained in:
ari melody 2025-10-21 23:37:31 +01:00
parent 70b329c902
commit ef3f3c5428
Signed by: ari
GPG key ID: CF99829C92678188
5 changed files with 15 additions and 11 deletions

View file

@ -20,7 +20,6 @@ function update_extras_buttons() {
const info_container = document.getElementById("info")
info_container.addEventListener("scroll", update_extras_buttons);
const info_rect = info_container.getBoundingClientRect();
const info_y = info_rect.y;
const font_size = parseFloat(getComputedStyle(document.documentElement).fontSize);
let current = extras_pairs[0];
extras_pairs.forEach(pair => {
@ -53,7 +52,7 @@ function bind_go_back_btn() {
function bind_share_btn() {
const share_btn = document.getElementById("share");
if (navigator.clipboard === undefined) {
share_btn.onclick = event => {
share_btn.onclick = () => {
console.error("clipboard is not supported by this browser!");
};
return;