MCPcopy
hub / github.com/SortableJS/Sortable / userAgent

Function userAgent

Sortable.js:121–125  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

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

Callers 1

Sortable.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…