MCPcopy Create free account
hub / github.com/microsoft/SandDance / getWidthOfCurrentWindow

Function getWidthOfCurrentWindow

docs/app/js/sanddance-app.js:31137–31143  ·  view source on GitHub ↗
(currentWindow)

Source from the content-addressed store, hash-verified

31135 return (0, _utilities.hoistStatics)(ComposedComponent, resultClass);
31136}
31137function getWidthOfCurrentWindow(currentWindow) {
31138 try {
31139 return currentWindow.document.documentElement.clientWidth;
31140 } catch (e) {
31141 return currentWindow.innerWidth;
31142 }
31143}
31144function getResponsiveMode(currentWindow) {
31145 var responsiveMode = ResponsiveMode.small;
31146 if (currentWindow) {

Callers 1

getResponsiveModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected