datatrash/static/origin.js

5 lines
151 B
JavaScript

const originSpans = document.querySelectorAll(".origin");
for (const originSpan of originSpans) {
originSpan.textContent = window.location.origin;
}