From: Michael D. Lowis Date: Fri, 1 Dec 2017 13:48:29 +0000 (-0500) Subject: fix logic on title X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=9681b2e27e980fbf819d4038aae979a9cc229838;p=proto%2Fjournal.git fix logic on title --- diff --git a/editor.js b/editor.js index 9e6947f..5625170 100644 --- a/editor.js +++ b/editor.js @@ -63,7 +63,7 @@ content.onkeydown = (ev) => (keys[ev.key] ? (keys[ev.key])(ev) : true); content.focus(); - if (doc.title != "") { + if (doc.title === "") { header.innerHTML = '

' + ymd_string() + '


'; doc.title = header.innerText; } diff --git a/index.html b/index.html index 5f56cee..53620c5 100644 --- a/index.html +++ b/index.html @@ -144,7 +144,7 @@ th:first-child, td:first-child { content.onkeydown = (ev) => (keys[ev.key] ? (keys[ev.key])(ev) : true); content.focus(); - if (doc.title != "") { + if (doc.title === "") { header.innerHTML = '

' + ymd_string() + '


'; doc.title = header.innerText; }