add embed script
This commit is contained in:
parent
37c13e3a13
commit
9689f682aa
1 changed files with 11 additions and 0 deletions
11
embed.js
Normal file
11
embed.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(function() {
|
||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
||||
get: (searchParams, prop) => searchParams.get(prop),
|
||||
});
|
||||
|
||||
if (!params.embed) {
|
||||
return
|
||||
}
|
||||
|
||||
document.querySelector('body').classList.add('is-embeded')
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue