Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix syntax error in JS

Uku Tahte8cb4ddefb0d
diff --git a/assets/js/app.js b/assets/js/app.js
index e5a7d07b26..2c0a9ad645 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -108,10 +108,11 @@ if (embedButton) {
embedLink.searchParams.set('background', background)
}
- embedCode.value = `<iframe plausible-embed ${backgroundAttr} src="${embedLink.toString()}" scrolling="no" frameborder="0" loading="lazy" style="width: 1px; min-width: 100%; height: 1600px;"></iframe>
+ embedCode.value = `<iframe plausible-embed src="${embedLink.toString()}" scrolling="no" frameborder="0" loading="lazy" style="width: 1px; min-width: 100%; height: 1600px;"></iframe>
<div style="font-size: 14px; padding-bottom: 14px;">Stats powered by <a target="_blank" style="color: #4F46E5; text-decoration: underline;" href="https://plausible.io">Plausible Analytics</a></div>
<script async src="${baseUrl}/js/embed.host.js"></script>`
} catch (e) {
+ console.error(e)
embedCode.value = 'ERROR: Please enter a valid URL in the shared link field'
}
})