aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/edit.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.js b/src/edit.js
index 910c229..c1018d7 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -92,6 +92,10 @@ window.addEventListener('load', () => {
fontSizeInput.addEventListener('change', fontSizeChangeHandler);
fontSizeInput.dispatchEvent(new Event('change'));
+ document.getElementById('title').addEventListener('input', e => {
+ pagetitle = e.target.value;
+ });
+
window.onkeydown = keyboardHandler;
window.onbeforeunload = confirmExit;
});