Update Tester.HTML

This commit is contained in:
Dangrainage 2024-04-25 08:53:54 +02:00 committed by GitHub
parent 152361447c
commit 425311ce6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,7 @@
} }
function generateDynamic(href) { function generateDynamic(href) {
if (href) {
fetch(`https://filmer.anorak01.top/vid/${href.split("//")[1]}`) fetch(`https://filmer.anorak01.top/vid/${href.split("//")[1]}`)
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
@ -68,6 +69,9 @@
.catch(error => { .catch(error => {
console.error('Error:', error); console.error('Error:', error);
}); });
} else {
console.error('Error: No valid link provided');
}
} }
</script> </script>
</body> </body>