Update SpotifyControls.plugin.js
This commit is contained in:
parent
249f605c28
commit
da306619c8
|
@ -2,7 +2,7 @@
|
|||
* @name SpotifyControls
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.4.0
|
||||
* @version 1.4.1
|
||||
* @description Adds a Control Panel while listening to Spotify on a connected Account
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -209,12 +209,12 @@ module.exports = (_ => {
|
|||
text: socketDevice.device.is_restricted ? _this.labels.restricted_device : null,
|
||||
tooltipConfig: {color: "red"},
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||
wrap: BDFDB.LibraryComponents.Flex.Wrap.NO_WRAP,
|
||||
grow: 0,
|
||||
children: [
|
||||
BDFDB.ReactUtils.createElement(SpotifyControlsButtonComponent, {
|
||||
type: "share",
|
||||
player: this,
|
||||
style: this.props.maximized ? {marginRight: 4} : {},
|
||||
onClick: _ => {
|
||||
let url = BDFDB.ObjectUtils.get(playbackState, "item.external_urls.spotify") || BDFDB.ObjectUtils.get(playbackState, "context.external_urls.spotify");
|
||||
if (url) {
|
||||
|
@ -293,7 +293,6 @@ module.exports = (_ => {
|
|||
player: this,
|
||||
icon: Math.ceil(currentVolume/34),
|
||||
disabled: socketDevice.device.is_restricted,
|
||||
style: this.props.maximized ? {marginLeft: 4} : {},
|
||||
onContextMenu: _ => {
|
||||
if (currentVolume == 0) {
|
||||
if (lastVolume) this.request(socketDevice.socket, socketDevice.device, "volume", {
|
||||
|
|
Loading…
Reference in New Issue