Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Fix play and pause command
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Jul 1, 2018
1 parent d07ca77 commit 4f63352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @Resources/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ function Finishing()
'Spicetify.Player.next=()=>this._doSkipToNext();',
'Spicetify.Player.back=()=>this._doSkipToPrevious();',
'Spicetify.Player.togglePlay=()=>this._doTogglePlay();',
'Spicetify.Player.play=()=>{eventDispatcher.dispatchEvent(new Event(Event.TYPES.PLAYER_RESUME))};',
'Spicetify.Player.pause=()=>{eventDispatcher.dispatchEvent(new Event(Event.TYPES.PLAYER_PAUSE))};',
'Spicetify.Player.play=()=>{!this.playing() && this._doTogglePlay();};',
'Spicetify.Player.pause=()=>{this.playing() && this._doTogglePlay();};',
'Spicetify.Player.isPlaying=()=>this.progressbar.isPlaying();',
'Spicetify.Player.toggleShuffle=()=>this.toggleShuffle();',
'Spicetify.Player.getShuffle=()=>this.shuffle();',
Expand Down

0 comments on commit 4f63352

Please sign in to comment.