init commit
This commit is contained in:
12
public/assets/libs/Sortable/src/BrowserInfo.js
Normal file
12
public/assets/libs/Sortable/src/BrowserInfo.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function userAgent(pattern) {
|
||||
if (typeof window !== 'undefined' && window.navigator) {
|
||||
return !!/*@__PURE__*/navigator.userAgent.match(pattern);
|
||||
}
|
||||
}
|
||||
|
||||
export const IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
||||
export const Edge = userAgent(/Edge/i);
|
||||
export const FireFox = userAgent(/firefox/i);
|
||||
export const Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
||||
export const IOS = userAgent(/iP(ad|od|hone)/i);
|
||||
export const ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
||||
Reference in New Issue
Block a user