From: Alexander Ebert Date: Tue, 25 Nov 2014 19:37:15 +0000 (+0100) Subject: work-around for weird localStorage behavior in Safari OS X/iOS X-Git-Tag: 2.1.0_Beta_1~157^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=217df2c9b50a3bb952b278288763701ce509b026;p=GitHub%2FWoltLab%2FWCF.git work-around for weird localStorage behavior in Safari OS X/iOS --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index be50ecfc01..35d37ef0e3 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -443,7 +443,7 @@ RedactorPlugins.wutil = function() { $value = { timestamp: 0 }; } - if (!$value.timestamp || $value.timestamp < $oneWeekAgo) { + if ($value === null || !$value.timestamp || $value.timestamp < $oneWeekAgo) { try { localStorage.removeItem($key); }