super_signature
xiaoyu 4 years ago
parent ffcc4efd89
commit 58b1fd06ac
  1. 9
      fir_client/src/components/FirDownload.vue
  2. 9
      fir_download/src/components/FirDownload.vue

@ -451,7 +451,8 @@
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //androiduc android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //androiduc
iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //iPhoneQQHD iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //iPhoneQQHD
iPad: u.indexOf('iPad') > -1, //iPad iPad: u.indexOf('iPad') > -1, //iPad
webApp: u.indexOf('Safari') == -1 //web webApp: u.indexOf('Safari') === -1, //web
macos: u.indexOf('Mac OS') > -1
}; };
}(), }(),
language: (navigator.browserLanguage || navigator.language).toLowerCase() language: (navigator.browserLanguage || navigator.language).toLowerCase()
@ -462,7 +463,11 @@
this.agent = 'wxapple'; this.agent = 'wxapple';
// //
} else { } else {
this.agent = 'apple'; if(browser.versions.macos){
this.agent='';
}else {
this.agent = 'apple';
}
} }
} }

@ -432,7 +432,8 @@
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //androiduc android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //androiduc
iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //iPhoneQQHD iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //iPhoneQQHD
iPad: u.indexOf('iPad') > -1, //iPad iPad: u.indexOf('iPad') > -1, //iPad
webApp: u.indexOf('Safari') == -1 //web webApp: u.indexOf('Safari') === -1, //web
macos: u.indexOf('Mac OS') > -1
}; };
}(), }(),
language: (navigator.browserLanguage || navigator.language).toLowerCase() language: (navigator.browserLanguage || navigator.language).toLowerCase()
@ -443,7 +444,11 @@
this.agent = 'wxapple'; this.agent = 'wxapple';
// //
} else { } else {
this.agent = 'apple'; if(browser.versions.macos){
this.agent='';
}else {
this.agent = 'apple';
}
} }
} }

Loading…
Cancel
Save