show 'untitled' for new pages instead of empty space

This commit is contained in:
dragonwocky 2020-11-01 12:30:10 +11:00
parent 5ac7e521b6
commit 8e2087d2fd
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D

View File

@ -246,7 +246,7 @@ module.exports = (store, __exports) => {
: `${icon.getAttribute('aria-label')} ` : `${icon.getAttribute('aria-label')} `
: '') + : '') +
(text (text
? text.innerText ? text.innerText || 'Untitled'
: [ : [
setTimeout(() => __electronApi.setWindowTitle(title), 250), setTimeout(() => __electronApi.setWindowTitle(title), 250),
title, title,