Add Dynamic Page Title

This commit is contained in:
Leo Herzog
2020-06-30 14:21:51 -04:00
parent 168b9dca9e
commit b50403dd32
3 changed files with 13 additions and 0 deletions

View File

@@ -12040,6 +12040,12 @@ function display() {
window.location.hash = parser.toMagnetURI(parsed); window.location.hash = parser.toMagnetURI(parsed);
if (parsed.name) {
document.title = "Torrent Parts | " + parsed.name;
} else {
document.title = "Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link";
}
} }
function createFileRow(icon, name, size) { function createFileRow(icon, name, size) {

View File

@@ -1,6 +1,7 @@
<!DOCTYPE html lang="en"> <!DOCTYPE html lang="en">
<head> <head>
<title>Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link</title>
<script async src="https://kit.fontawesome.com/9ca49f101f.js"></script> <script async src="https://kit.fontawesome.com/9ca49f101f.js"></script>
</head> </head>

View File

@@ -154,6 +154,12 @@ function display() {
window.location.hash = parser.toMagnetURI(parsed); window.location.hash = parser.toMagnetURI(parsed);
if (parsed.name) {
document.title = "Torrent Parts | " + parsed.name;
} else {
document.title = "Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link";
}
} }
function createFileRow(icon, name, size) { function createFileRow(icon, name, size) {