diff options
author | Aleix Conchillo FlaquƩ <aconchillo@gmail.com> | 2022-02-04 21:44:17 -0800 |
---|---|---|
committer | Aleix Conchillo FlaquƩ <aconchillo@gmail.com> | 2022-02-04 21:44:17 -0800 |
commit | 80b6775b4fcd78b5e5c1c9140e50d733bccdb4fc (patch) | |
tree | ee105f8baa56ad2832157f78ba723cd73bd82251 | |
parent | dc01c64370a8ab2dab83bb4a024feeb1727a0491 (diff) |
examples: update spotify examples
-rw-r--r-- | examples/spotify-playpause.gs | 5 | ||||
-rw-r--r-- | examples/spotify-song.gs (renamed from examples/spotify.gs) | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/spotify-playpause.gs b/examples/spotify-playpause.gs new file mode 100644 index 0000000..b41a9f7 --- /dev/null +++ b/examples/spotify-playpause.gs @@ -0,0 +1,5 @@ +;; -*- mode: scheme; coding: utf-8; -*- + +(define spotify (Application "Spotify")) + +(js-invoke spotify playpause) diff --git a/examples/spotify.gs b/examples/spotify-song.gs index ad1d03d..ceb6e71 100644 --- a/examples/spotify.gs +++ b/examples/spotify-song.gs @@ -2,8 +2,6 @@ (define spotify (Application "Spotify")) -(js-invoke spotify playpause) - (define currentTrack (js-invoke spotify currentTrack)) (define name (js-invoke currentTrack name)) (define artist (js-invoke currentTrack artist)) |