add default value to qr editor wrap setting

This commit is contained in:
LenAnderson 2024-04-07 16:59:50 -04:00
parent 63117653bb
commit 3ed0564d73
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ export class QuickReply {
});
/**@type {HTMLInputElement}*/
const wrap = dom.querySelector('#qr--modal-wrap');
wrap.checked = JSON.parse(localStorage.getItem('qr--wrap'));
wrap.checked = JSON.parse(localStorage.getItem('qr--wrap') ?? 'false');
wrap.addEventListener('click', () => {
localStorage.setItem('qr--wrap', JSON.stringify(wrap.checked));
updateWrap();