MCPcopy Create free account
hub / github.com/play-co/devkit / matchResolution

Function matchResolution

src/web/util/DeviceInfo.js:108–116  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

106
107 var match;
108 function matchResolution (id) {
109 var info = module.exports.defaults[id];
110 if (opts.screen.width == info.width && opts.screen.height == info.height) {
111 match = copy(info);
112 } else if (opts.screen.width == info.height && opts.screen.height == info.width) {
113 match = copy(info);
114 match.rotation = 1;
115 }
116 }
117
118 var fallback = 'mobile';
119 if (opts.screen) {

Callers

nothing calls this directly

Calls 1

copyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…