From 9068909b4d3ddc51627cd989a945b49b37a11254 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 22 Nov 2016 19:43:51 -0300 Subject: [PATCH] fixes for standard --- bin/package.js | 2 +- src/renderer/lib/cast.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/package.js b/bin/package.js index 38aea5c7..65b12260 100755 --- a/bin/package.js +++ b/bin/package.js @@ -89,7 +89,7 @@ const all = { // Pattern which specifies which files to ignore when copying files to create the // package(s). - ignore: /^\/src|^\/dist|\/(appveyor.yml|\.appveyor.yml|\.github|appdmg|AUTHORS|CONTRIBUTORS|bench|benchmark|benchmark\.js|bin|bower\.json|component\.json|coverage|doc|docs|docs\.mli|dragdrop\.min\.js|example|examples|example\.html|example\.js|externs|ipaddr\.min\.js|Makefile|min|minimist|perf|rusha|simplepeer\.min\.js|simplewebsocket\.min\.js|static\/screenshot\.png|test|tests|test\.js|tests\.js|webtorrent\.min\.js|\.[^\/]*|.*\.md|.*\.markdown)$/, + ignore: /^\/src|^\/dist|\/(appveyor.yml|\.appveyor.yml|\.github|appdmg|AUTHORS|CONTRIBUTORS|bench|benchmark|benchmark\.js|bin|bower\.json|component\.json|coverage|doc|docs|docs\.mli|dragdrop\.min\.js|example|examples|example\.html|example\.js|externs|ipaddr\.min\.js|Makefile|min|minimist|perf|rusha|simplepeer\.min\.js|simplewebsocket\.min\.js|static\/screenshot\.png|test|tests|test\.js|tests\.js|webtorrent\.min\.js|\.[^/]*|.*\.md|.*\.markdown)$/, // The application name. name: config.APP_NAME, diff --git a/src/renderer/lib/cast.js b/src/renderer/lib/cast.js index 3d3c7b9d..8db83fc7 100644 --- a/src/renderer/lib/cast.js +++ b/src/renderer/lib/cast.js @@ -388,7 +388,8 @@ function toggleMenu (location) { if (state.playing.location !== 'local') { throw new CastingError( `You can't connect to ${location} when already connected to another device` - ) } + ) + } // Find all cast devices of the given type const player = getPlayer(location)