1
This commit is contained in:
@@ -245,7 +245,9 @@ const de = lang === "de";
|
||||
async function printCV(el, title, settings, tpl) {
|
||||
let globalCss = "";
|
||||
try {
|
||||
globalCss = await fetch("/styles/global.css").then((r) => r.text());
|
||||
globalCss = await fetch(
|
||||
`${window.location.origin}/styles/global.css`,
|
||||
).then((r) => r.text());
|
||||
} catch (e) {}
|
||||
|
||||
const inlineStyles = Array.from(document.querySelectorAll("style"))
|
||||
@@ -346,7 +348,9 @@ const de = lang === "de";
|
||||
// ── HTML Export ───────────────────────────────────────────────
|
||||
window.exportHTML = async function () {
|
||||
const el = document.getElementById("cv-content");
|
||||
const globalCss = await fetch("/styles/global.css")
|
||||
const globalCss = await fetch(
|
||||
`${window.location.origin}/styles/global.css`,
|
||||
)
|
||||
.then((r) => r.text())
|
||||
.catch(() => "");
|
||||
const inlineStyles = Array.from(document.querySelectorAll("style"))
|
||||
|
||||
@@ -496,7 +496,9 @@ function j(v: any) {
|
||||
async function printCV(el, title, settings, tpl) {
|
||||
let globalCss = "";
|
||||
try {
|
||||
globalCss = await fetch("/styles/global.css").then((r) => r.text());
|
||||
globalCss = await fetch(
|
||||
`${window.location.origin}/styles/global.css`,
|
||||
).then((r) => r.text());
|
||||
} catch (e) {}
|
||||
|
||||
const inlineStyles = Array.from(document.querySelectorAll("style"))
|
||||
@@ -596,7 +598,9 @@ function j(v: any) {
|
||||
window.exportHTML = async function () {
|
||||
document.getElementById("export-menu").classList.add("hidden");
|
||||
const el = document.getElementById("cv-preview");
|
||||
const globalCss = await fetch("/styles/global.css")
|
||||
const globalCss = await fetch(
|
||||
`${window.location.origin}/styles/global.css`,
|
||||
)
|
||||
.then((r) => r.text())
|
||||
.catch(() => "");
|
||||
const inlineStyles = Array.from(document.querySelectorAll("style"))
|
||||
|
||||
Reference in New Issue
Block a user