diff --git a/bundle.js b/bundle.js index 6ec8af0..d8a3134 100644 --- a/bundle.js +++ b/bundle.js @@ -12040,6 +12040,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) { diff --git a/index.html b/index.html index 87c3b81..c1998ce 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link diff --git a/parse.js b/parse.js index 37e4d36..85e4b42 100644 --- a/parse.js +++ b/parse.js @@ -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) {