Change iframe.src to Loading... in the topbar.
This commit is contained in:
parent
551034179a
commit
7b808bb821
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@
|
||||||
function updateTopbarTitle(iframe) {
|
function updateTopbarTitle(iframe) {
|
||||||
let topbarTitle = document.getElementById("url-text");
|
let topbarTitle = document.getElementById("url-text");
|
||||||
if (iframe.contentDocument.title == "") {
|
if (iframe.contentDocument.title == "") {
|
||||||
topbarTitle.innerText = iframe.src;
|
topbarTitle.innerText = "Loading...";
|
||||||
} else {
|
} else {
|
||||||
if (iframe.contentDocument.title.length > 65) {
|
if (iframe.contentDocument.title.length > 65) {
|
||||||
topbarTitle.innerText = iframe.contentDocument.title.slice(0, 65) + "...";
|
topbarTitle.innerText = iframe.contentDocument.title.slice(0, 65) + "...";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue