mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 00:49:42 -06:00
fix: structured clone (#2483)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import structuredClonePolyfill from "@ungap/structured-clone";
|
||||
|
||||
let structuredCloneExport = structuredClone;
|
||||
let structuredCloneExport: typeof structuredClonePolyfill;
|
||||
|
||||
if (typeof structuredCloneExport === "undefined") {
|
||||
// @ts-expect-error
|
||||
if (typeof structuredClone === "undefined") {
|
||||
structuredCloneExport = structuredClonePolyfill;
|
||||
} else {
|
||||
// @ts-expect-error
|
||||
structuredCloneExport = structuredClone;
|
||||
}
|
||||
|
||||
// export default structuredCloneExport;
|
||||
export { structuredCloneExport as structuredClone };
|
||||
|
||||
Reference in New Issue
Block a user