refactor cast module

* refactor cast module

* fix standard

* remove debug dependency
This commit is contained in:
grunjol
2016-04-04 05:22:02 -03:00
committed by DC
parent 5ccabe756a
commit 4f79fbfc41
2 changed files with 167 additions and 96 deletions

View File

@@ -242,10 +242,10 @@ function dispatch (action, ...args) {
openTorrentContextMenu(args[0] /* infoHash */)
}
if (action === 'openChromecast') {
lazyLoadCast().openChromecast()
lazyLoadCast().open('chromecast')
}
if (action === 'openAirplay') {
lazyLoadCast().openAirplay()
lazyLoadCast().open('airplay')
}
if (action === 'stopCasting') {
lazyLoadCast().stopCasting()