Skip to content

Commit

Permalink
fix: correct event type
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Dec 25, 2018
1 parent 22436b9 commit 0018153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocess/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func exposeAPIs(input string) string {
};
const eventCB = ({data: info}) => {
if (info && info.type === "notify_loaded") {
if (info && info.type === "notify_ready") {
Spicetify.Player.dispatchEvent(appEvent);
window.removeEventListener("message", eventCB)
}
Expand Down

0 comments on commit 0018153

Please sign in to comment.