2026-08-12 06:57:52 +00:00
|
|
|
// Module ID: 9303
|
|
|
|
|
// Function ID: 9304
|
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
|
|
|
|
|
|
2026-08-12 06:57:52 +00:00
|
|
|
// Module 9303 (getDevicePixelRatio)
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("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;
|
|
|
|
|
};
|