删除对 chrome 版本的判断
This commit is contained in:
@@ -152,11 +152,11 @@ export function decode(bytes?: string) {
|
||||
)
|
||||
}
|
||||
|
||||
function getChromeVersion() {
|
||||
var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)
|
||||
return raw ? parseInt(raw[2], 10) : 0
|
||||
}
|
||||
// function getChromeVersion() {
|
||||
// var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)
|
||||
// return raw ? parseInt(raw[2], 10) : 0
|
||||
// }
|
||||
|
||||
export const isLowVersion = getChromeVersion() < 80
|
||||
// export const isLowVersion = getChromeVersion() < 80
|
||||
|
||||
export const protocol = isLowVersion ? "http" : "https"
|
||||
// export const protocol = isLowVersion ? "http" : "https"
|
||||
|
||||
Reference in New Issue
Block a user