Skip to content

Commit e11e6e4

Browse files
authored
assume high pixel density when headless (#1442)
1 parent b0db22f commit e11e6e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "./options.js";
1616
import {warn} from "./warnings.js";
1717

18-
export const offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5;
18+
export const offset = (typeof window !== "undefined" ? window.devicePixelRatio > 1 : typeof it === "undefined") ? 0 : 0.5; // prettier-ignore
1919

2020
let nextClipId = 0;
2121

0 commit comments

Comments
 (0)