datatrash/static/origin.js

5 lines
151 B
JavaScript
Raw Normal View History

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