Skip to content

Commit 2f81419

Browse files
authored
fix(preprocess): add nullish check
1 parent a06256c commit 2f81419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/preprocess/preprocess.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ func Start(version string, spotifyBasePath string, extractedAppsPath string, fla
254254
}
255255

256256
if fileName == "dwp-top-bar.js" || fileName == "dwp-now-playing-bar.js" || fileName == "dwp-home-chips-row.js" {
257-
utils.ReplaceOnce(&content, `(\w+\.pathname)\.startsWith\((\w+)\)`, func(submatches ...string) string {
258-
return fmt.Sprintf("%s === %s", submatches[1], submatches[2])
257+
utils.ReplaceOnce(&content, `e\.state\.cinemaState`, func(submatches ...string) string {
258+
return "e.state?.cinemaState"
259259
})
260260
}
261261

0 commit comments

Comments
 (0)