xiaokeqi / i-learned

1 stars 0 forks source link

safari localStorage禁用问题 #7

Open xiaokeqi opened 5 years ago

xiaokeqi commented 5 years ago

image image 如图2所示,若safari设置了【阻止所有cookie】页面上会报图1所示的bug

只要页面中有用到localStorage,就会产生这个错误。

xiaokeqi commented 5 years ago

没找到修复办法,只能让页面中不采用localstorage,通过cookie实现。或者try catch一下

:octocat: From gitme iOS