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

@@ -154,6 +154,12 @@ function display() {
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) {