From e2ce06f3b7573e9fd4a68712ff4715376eacf2ed Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 2 Mar 2016 18:50:06 -0800 Subject: [PATCH] fix chromecast support --- main/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/index.js b/main/index.js index 03fb9a5c..ddcb6f5d 100644 --- a/main/index.js +++ b/main/index.js @@ -2,7 +2,7 @@ // var prettyBytes = require('pretty-bytes') var airplay = require('airplay-js') -var chromecasts = require('chromecasts') +var chromecasts = require('chromecasts')() var createTorrent = require('create-torrent') var dragDrop = require('drag-drop') var electron = require('electron') @@ -62,8 +62,8 @@ function init () { dragDrop('body', onFiles) - chromecasts().on('update', function (player) { - state.chromecasts = player + chromecasts.on('update', function (player) { + state.chromecast = player update() })