mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
fix safari detection in migration
This commit is contained in:
parent
925daf017b
commit
df93cd5b6e
1 changed files with 1 additions and 1 deletions
|
@ -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:'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue