mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-13 02:20:06 -04:00
Update ChannelPopup.svelte
This commit is contained in:
parent
152d50cec2
commit
3525449e40
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,12 @@
|
||||||
|
|
||||||
const { close } = getContext('simple-modal')
|
const { close } = getContext('simple-modal')
|
||||||
|
|
||||||
|
window.onpopstate = event => {
|
||||||
|
if (event.target.location.pathname === '/') {
|
||||||
|
close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const closePopup = () => {
|
const closePopup = () => {
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue