From 515ac5d9416e964611d6e09c858d307d480a1799 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 20 Mar 2022 03:40:21 +0100 Subject: [PATCH] show textfile name in document title --- copyparty/web/browser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 9a85ebc0..560ce593 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2472,6 +2472,7 @@ var showfile = (function () { wr.style.display = ''; set_tabindex(); + wintitle(name + ' \u2014 '); document.documentElement.scrollTop = 0; var hfun = no_push ? hist_replace : hist_push; hfun(get_evpath() + '?doc=' + url.split('/').pop()); @@ -2613,6 +2614,7 @@ var thegrid = (function () { return; hist_push(get_evpath()); + wintitle(); } var vis = has(perms, "read");