diff --git a/site/multiembedder/MultiEmbedder.tsx b/site/multiembedder/MultiEmbedder.tsx index 5dc2363dc95..59b1d843bfc 100644 --- a/site/multiembedder/MultiEmbedder.tsx +++ b/site/multiembedder/MultiEmbedder.tsx @@ -159,9 +159,8 @@ class MultiEmbedder { dataApiUrl: DATA_API_URL, } - const html = await fetchText(fullUrl) - if (isExplorer) { + const html = await fetchText(fullUrl) let grapherConfigs = deserializeJSONFromHTML( html, EMBEDDED_EXPLORER_GRAPHER_CONFIGS @@ -202,7 +201,9 @@ class MultiEmbedder { } else { figure.classList.remove(GRAPHER_PREVIEW_CLASS) - const grapherPageConfig = deserializeJSONFromHTML(html) + const grapherPageConfig = await fetch( + `${fullUrl}.config.json` + ).then((res) => res.json()) const figureConfigAttr = figure.getAttribute( GRAPHER_EMBEDDED_FIGURE_CONFIG_ATTR