diff --git a/static/worksheets/api/unlods.js b/static/worksheets/api/unlods.js index 4913708..3fb3ad8 100644 --- a/static/worksheets/api/unlods.js +++ b/static/worksheets/api/unlods.js @@ -1,6 +1,6 @@ unlods = document.getElementById('onbeforeunload'); window.addEventListener('load', () => { - unlods.value = localStorage.getItem('onbeforeunload'); + unlods.value = localStorage.getItem('onbeforeunload') || "true"; }); document.getElementById('onbeforeunloadForm').addEventListener('submit', (event) => { onbeforeunloadSetting = document.getElementById('onbeforeunload').value;