show 'untitled' for new pages instead of empty space

This commit is contained in:
dragonwocky 2020-11-01 12:30:10 +11:00
parent 293e5ce228
commit f6ec94b46e

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,