We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530d063 commit 168e525Copy full SHA for 168e525
1 file changed
src/style.js
@@ -6,8 +6,7 @@ import {isNone, isNoneish, isRound, maybeColorChannel, maybeNumberChannel} from
6
import {keyof, number, string} from "./options.js";
7
import {warn} from "./warnings.js";
8
9
-export const offset = (typeof window !== "undefined" ? window.devicePixelRatio > 1 : typeof it === "undefined") ? 0 : 0.5; // prettier-ignore
10
-
+export const offset = typeof window !== "undefined" && !(window.devicePixelRatio > 1) ? 0.5 : 0;
11
let nextClipId = 0;
12
let nextPatternId = 0;
13
0 commit comments