site: fix compatibility

This commit is contained in:
afc163 2017-03-05 20:13:32 +08:00
parent a16636cafd
commit 47f2aab529

View File

@ -11,8 +11,8 @@
<script>
(function() {
function isLocalStorageNameSupported() {
const testKey = 'test';
const storage = window.localStorage;
var testKey = 'test';
var storage = window.localStorage;
try {
storage.setItem(testKey, '1');
storage.removeItem(testKey);