diff options
author | anekos | 2015-09-30 23:36:31 +0900 |
---|---|---|
committer | anekos | 2015-09-30 23:36:31 +0900 |
commit | ec31240376349d592a68263185f53001ae132f30 (patch) | |
tree | d2acdc2cb88a6755926e83a2109b98505e718d55 /mpd-currentsong.js | |
parent | 827f6d6f54de9199f45d1f138d5725cb84131ab8 (diff) | |
download | vimperator-plugins-ec31240376349d592a68263185f53001ae132f30.tar.bz2 |
Apa
Diffstat (limited to 'mpd-currentsong.js')
-rw-r--r-- | mpd-currentsong.js | 8 |
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'; |