decord/alpha/source/utils/getDevicePixelRatio.web.tsx
github-actions ad105f2d59 chore: update source for alpha 348.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-21 06:29:48 +00:00

18 lines
422 B
TypeScript

// Module ID: 10018
// Function ID: 10019
// Name: utils/getDevicePixelRatio
// Dependencies: [2]
// Exports: default
// Module 10018 (utils/getDevicePixelRatio)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("utils/getDevicePixelRatio.web.tsx");
export default function getDevicePixelRatio() {
let num = window.devicePixelRatio;
if (num == null) {
num = 1;
}
return num;
};