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

Function isWindows8OrAbove

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

Source from the content-addressed store, hash-verified

89let tablet: boolean;
90
91const isWindows8OrAbove = () => {
92 if (isSSR) {
93 return false;
94 }
95
96 if (!internals.windows) {
97 return false;
98 }
99
100 if (windowsVersion === undefined) {
101 const matches = internals.userAgent.match(/Windows NT (\d+).(\d)/);
102 windowsVersion = matches ? parseFloat(matches[1]) : 0;
103 }
104
105 return windowsVersion >= 8;
106};
107
108const isWebkit537OrAbove = () => {
109 if (isSSR) {

Callers 3

detectTabletFunction · 0.85
isTabletFunction · 0.85
isDesktopFunction · 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…