Update Tester.HTML
This commit is contained in:
parent
152361447c
commit
425311ce6a
1 changed files with 16 additions and 12 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue