mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 11:13:22 +03:00
Fix syntax error in JS
This commit is contained in:
parent
4ea60f8f1c
commit
e8cb4ddefb
@ -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'
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user