aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2015-09-30 23:36:31 +0900
committeranekos2015-09-30 23:36:31 +0900
commitec31240376349d592a68263185f53001ae132f30 (patch)
treed2acdc2cb88a6755926e83a2109b98505e718d55
parent827f6d6f54de9199f45d1f138d5725cb84131ab8 (diff)
downloadvimperator-plugins-ec31240376349d592a68263185f53001ae132f30.tar.bz2
Apa
-rw-r--r--mpd-currentsong.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/mpd-currentsong.js b/mpd-currentsong.js
index 98b6d4a..df83f9f 100644
--- a/mpd-currentsong.js
+++ b/mpd-currentsong.js
@@ -69,9 +69,11 @@ let INFO = xml`
(function () {
let socketService =
- let (stsvc = Cc['@mozilla.org/network/socket-transport-service;1'])
- let (svc = stsvc.getService())
- svc.QueryInterface(Ci.nsISocketTransportService);
+ (function () {
+ let stsvc = Cc['@mozilla.org/network/socket-transport-service;1'];
+ let svc = stsvc.getService();
+ return svc.QueryInterface(Ci.nsISocketTransportService);
+ })();
function getSongInfo () {
let host = liberator.globalVariables.mpd_currentsong_host || 'localhost';