From ea4fe4f942e73fa2b7595399523054b8e09840d8 Mon Sep 17 00:00:00 2001
From: Stefan Yohansson <stefan@evolux.net.br>
Date: Fri, 21 Aug 2015 14:33:43 -0300
Subject: [PATCH] FS-8022 - fix refresh devices and prevent reset previous
 selected configuration

---
 html5/verto/verto_communicator/js/controllers.js   | 2 +-
 html5/verto/verto_communicator/js/verto-service.js | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/html5/verto/verto_communicator/js/controllers.js b/html5/verto/verto_communicator/js/controllers.js
index e7f55fe119..64e780f596 100644
--- a/html5/verto/verto_communicator/js/controllers.js
+++ b/html5/verto/verto_communicator/js/controllers.js
@@ -675,7 +675,7 @@ vertoControllers.controller('ModalSettingsController', ['$scope', '$http',
     };
 
     $scope.refreshDeviceList = function() {
-      verto.refreshDevices();
+      return verto.refreshDevices();
     }
   }
 ]);
diff --git a/html5/verto/verto_communicator/js/verto-service.js b/html5/verto/verto_communicator/js/verto-service.js
index c319f45862..194b189bf4 100644
--- a/html5/verto/verto_communicator/js/verto-service.js
+++ b/html5/verto/verto_communicator/js/verto-service.js
@@ -248,10 +248,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
           }];
           data.audioDevices = [];
 
-          data.selectedVideo = 'none';
-          data.selectedShare = 'screen';
-          data.selectedAudio = null;
-
           for (var i in jQuery.verto.videoDevices) {
             var device = jQuery.verto.videoDevices[i];
             if (!device.label) {