Sanitize value of SOGoMailAutoSave

This commit is contained in:
Francis Lachapelle committed 2019-09-26 11:17:15 -04:00
1 parent 2fbe721c60
commit eafbdd3884
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -384,7 +384,7 @@ function initAddresses() {
}
function initAutoSaveTimer() {
var autoSave = parseInt(UserDefaults["SOGoMailAutoSave"]) || 5;
var autoSave = Math.abs(parseInt(UserDefaults["SOGoMailAutoSave"])) || 5;
if (autoSave) {
var interval;