Update SpotifyControls.plugin.js

This commit is contained in:
Mirco Wittrien 2022-10-14 17:11:45 +02:00 committed by GitHub
parent 12299a4564
commit 424b9facaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name SpotifyControls
* @author DevilBro
* @authorId 278543574059057154
* @version 1.2.8
* @version 1.2.9
* @description Adds a Control Panel while listening to Spotify on a connected Account
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -218,7 +218,7 @@ module.exports = (_ => {
onClick: _ => {
let url = BDFDB.ObjectUtils.get(playbackState, "item.external_urls.spotify") || BDFDB.ObjectUtils.get(playbackState, "context.external_urls.spotify");
if (url) {
BDFDB.LibraryRequires.electron.clipboard.write({text: url});
BDFDB.LibraryModules.WindowUtils.copy(url);
BDFDB.NotificationUtils.toast(_this.labels.toast_copyurl_success, {type: "success"});
}
else BDFDB.NotificationUtils.toast(_this.labels.toast_copyurl_fail, {type: "danger"});