Skip to content

Commit 1f13f73

Browse files
authored
fix(wrapper): update Color.CSSFormat module check (#3907)
1 parent 31b0192 commit 1f13f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jsHelper/spicetifyWrapper/webpack/runtime-resolvers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function exposeRuntimeResolvers({ cache, chunks, modules, functionModules
127127
Spicetify.ReactQuery.useInfiniteQuery = Object.values(require(infiniteQueryChunk[0])).find((m) => typeof m === "function");
128128
}
129129

130-
if (Spicetify.Color) Spicetify.Color.CSSFormat = modules.find((m) => m?.RGBA);
130+
if (Spicetify.Color) Spicetify.Color.CSSFormat = modules.find((m) => typeof m?.RGBA === "number");
131131

132132
// Combine snackbar and notification
133133
(function bindShowNotification(attempt = 0) {

0 commit comments

Comments
 (0)