decord/source/utils/getDevicePixelRatio.web.tsx

19 lines
400 B
TypeScript
Raw Normal View History

// Module ID: 9196
// Function ID: 9197
2026-07-20 16:05:17 +00:00
// Name: getDevicePixelRatio
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 9196 (getDevicePixelRatio)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("utils/getDevicePixelRatio.web.tsx");
2026-07-20 16:05:17 +00:00
export default function getDevicePixelRatio() {
2026-07-29 08:29:29 +00:00
let num = window.devicePixelRatio;
if (num == null) {
num = 1;
2026-07-20 16:05:17 +00:00
}
return num;
};