MCPcopy Create free account
hub / github.com/UI5/webcomponents / isWebkit537OrAbove

Function isWebkit537OrAbove

packages/base/src/Device.ts:108–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106};
107
108const isWebkit537OrAbove = () => {
109 if (isSSR) {
110 return false;
111 }
112
113 if (!internals.webkit) {
114 return false;
115 }
116
117 if (webkitVersion === undefined) {
118 const matches = internals.userAgent.match(/(webkit)[ /]([\w.]+)/);
119 webkitVersion = matches ? parseFloat(matches[1]) : 0;
120 }
121
122 return webkitVersion >= 537.10;
123};
124
125const detectTablet = () => {
126 if (isSSR) {

Callers 1

detectTabletFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…