fixed flex side issue
This commit is contained in:
9
src/utils/system.js
Normal file
9
src/utils/system.js
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
export async function isChromium() {
|
||||
if (navigator.userAgentData) {
|
||||
const brands = await navigator.userAgentData.getHighEntropyValues(["brands"])
|
||||
return brands.brands.some(brand => /Chromium|Google Chrome|Microsoft Edge|Opera|Brave/i.test(brand.brand))
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user