diff --git a/src/main.ts b/src/main.ts index 6261110998..2cc18f1b24 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,3 +1,4 @@ +import "@/polyfills/global"; import { mountBaseComponents } from "@/components/base/components"; import "@/plugins/polyfills"; import { diff --git a/src/polyfills/global.ts b/src/polyfills/global.ts new file mode 100644 index 0000000000..7aaf205779 --- /dev/null +++ b/src/polyfills/global.ts @@ -0,0 +1,5 @@ +// src/polyfills/global.ts +// Polyfill für global (CSP-konform) +if (typeof global === "undefined") { + (window as unknown as { global: typeof globalThis }).global = globalThis; +}