Skip to content

Commit

Permalink
correctif de 404 sur la redirection du script d'embed (#1228)
Browse files Browse the repository at this point in the history
fix regression on iframe embed
  • Loading branch information
fabienheureux authored Jan 20, 2025
1 parent 9a6f805 commit a257df5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { iframeResize } from "iframe-resizer";
const script = document.currentScript as HTMLScriptElement
const slug = script?.dataset?.objet;
const origin = new URL(script?.getAttribute("src")).origin
const src = `${origin}/dechet/${slug || ''}?iframe`;
const src = `${origin}/${slug || ''}?iframe`;
const iframe = document.createElement("iframe");

const iframeAttributes = {
Expand Down

0 comments on commit a257df5

Please sign in to comment.