fix safari detection in migration

This commit is contained in:
WEBXOSS 2017-03-07 10:31:02 +08:00
parent 925daf017b
commit df93cd5b6e

View file

@ -12,7 +12,7 @@
}
// migrated by the old way, buggy in safari
if (localStorage.getItem('migrated') === 'true') {
if (navigator.userAgent.indexOf('safari') === -1) {
if (!window.safari) {
return location.replace(location.href.replace(/^http:/, 'https:'))
}
}