decord/alpha/source/utils/getDevicePixelRatio.web.tsx

19 lines
422 B
TypeScript
Raw Normal View History

// Module ID: 10017
// Function ID: 10018
// Name: utils/getDevicePixelRatio
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10017 (utils/getDevicePixelRatio)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.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;
};