Switch to Absolute Links Everywhere

This commit is contained in:
Leo Herzog
2020-11-17 15:14:08 -05:00
parent 9e53b06dd0
commit 58f559ff78
5 changed files with 9 additions and 9 deletions

View File

@@ -37992,7 +37992,7 @@ function start() {
example3.addEventListener('click', async function(event) {
event.preventDefault();
notyf.success("Parsing Jack Johnson Archive.org Torrent File");
let response = await fetch("jj2008-06-14.mk4_archive.torrent");
let response = await fetch("/ext/jj2008-06-14.mk4_archive.torrent");
let arrayBuffer = await response.arrayBuffer();
parse(Buffer.from(arrayBuffer));
});

2
bin/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -34,10 +34,10 @@
<title>Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link</title>
<link href="src/style.css" rel="stylesheet" />
<script async src="ext/fa.min.js"></script>
<link href="/src/style.css" rel="stylesheet" />
<script async src="/ext/fa.min.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="ext/notyf.min.js"></script>
<script src="/ext/notyf.min.js"></script>
<script async defer src="https://www.googletagmanager.com/gtag/js?id=G-VT4953Z89H"></script>
<script>
@@ -201,14 +201,14 @@
</div>
<footer>
<a href="https://github.com/leoherzog/TorrentParts/releases" target="_blank">v1.0</a>
<a href="https://github.com/leoherzog/TorrentParts/releases" target="_blank">v1.1</a>
</footer>
<script src="bin/bundle.min.js"></script>
<script src="/bin/bundle.min.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => navigator.serviceWorker.register('src/sw.js'));
window.addEventListener('load', () => navigator.serviceWorker.register('/src/sw.js'));
}
</script>

View File

@@ -114,7 +114,7 @@ function start() {
example3.addEventListener('click', async function(event) {
event.preventDefault();
notyf.success("Parsing Jack Johnson Archive.org Torrent File");
let response = await fetch("jj2008-06-14.mk4_archive.torrent");
let response = await fetch("/ext/jj2008-06-14.mk4_archive.torrent");
let arrayBuffer = await response.arrayBuffer();
parse(Buffer.from(arrayBuffer));
});