update embed script

This commit is contained in:
Simon Vieille 2023-05-21 16:26:18 +02:00
parent 9689f682aa
commit 6f8e105836
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -1,9 +1,7 @@
(function() {
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
const params = new new URLSearchParams(window.location.search)
if (!params.embed) {
if (!params.has('embed')) {
return
}