diff --git a/mobile/android/chrome/content/CastingApps.js b/mobile/android/chrome/content/CastingApps.js index 179e4ac0c5b8..74d1d6a8541b 100644 --- a/mobile/android/chrome/content/CastingApps.js +++ b/mobile/android/chrome/content/CastingApps.js @@ -458,10 +458,6 @@ var CastingApps = { } }); - if (items.length == 0) { - return; - } - let prompt = new Prompt({ title: Strings.browser.GetStringFromName("casting.prompt") }).setSingleChoiceItems(items).show(function(data) { diff --git a/mobile/android/modules/SimpleServiceDiscovery.jsm b/mobile/android/modules/SimpleServiceDiscovery.jsm index 5c223c694153..d00ab6be82b1 100644 --- a/mobile/android/modules/SimpleServiceDiscovery.jsm +++ b/mobile/android/modules/SimpleServiceDiscovery.jsm @@ -246,8 +246,8 @@ var SimpleServiceDiscovery = { getSupportedExtensions: function() { let extensions = []; - this.services.forEach(function(service) { - extensions = extensions.concat(service.extensions); + this._targets.forEach(function(target) { + extensions = extensions.concat(target.extensions); }, this); return extensions.filter(function(extension, pos) { return extensions.indexOf(extension) == pos; @@ -256,8 +256,8 @@ var SimpleServiceDiscovery = { getSupportedMimeTypes: function() { let types = []; - this.services.forEach(function(service) { - types = types.concat(service.types); + this._targets.forEach(function(target) { + types = types.concat(target.types); }, this); return types.filter(function(type, pos) { return types.indexOf(type) == pos;