update embed script
This commit is contained in:
parent
9689f682aa
commit
6f8e105836
6
embed.js
6
embed.js
|
@ -1,9 +1,7 @@
|
||||||
(function() {
|
(function() {
|
||||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
const params = new new URLSearchParams(window.location.search)
|
||||||
get: (searchParams, prop) => searchParams.get(prop),
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!params.embed) {
|
if (!params.has('embed')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue