impress/app/javascript/wardrobe-2020/impress-2020-config.js

11 lines
325 B
JavaScript
Raw Normal View History

const IMPRESS_2020_ORIGIN = readImpress2020Origin();
export function buildImpress2020Url(path) {
return new URL(path, IMPRESS_2020_ORIGIN).toString();
}
function readImpress2020Origin() {
const node = document.querySelector("meta[name=impress-2020-origin]");
return node?.content || "https://impress-2020.openneo.net"
}