MCPcopy Index your code
hub / github.com/SortableJS/Sortable / userAgent

Function userAgent

modular/sortable.core.esm.js:115–119  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

113var version = "1.15.7";
114
115function userAgent(pattern) {
116 if (typeof window !== 'undefined' && window.navigator) {
117 return !! /*@__PURE__*/navigator.userAgent.match(pattern);
118 }
119}
120var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
121var Edge = userAgent(/Edge/i);
122var FireFox = userAgent(/firefox/i);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…