mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:53:27 +02:00
Fix selection of browser bug,
caused by lodash 2.x->3.x's _.first() breaking change.
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = function NavigationCtrl($scope, $rootScope) {
|
||||
if (browser.selected) {
|
||||
var selectedBrowser = _.first(browser.apps, 'selected')
|
||||
if (!_.isEmpty(selectedBrowser)) {
|
||||
currentBrowser = selectedBrowser[0]
|
||||
currentBrowser = selectedBrowser
|
||||
}
|
||||
} else {
|
||||
var defaultBrowser = _.find(browser.apps, {name: 'Browser'})
|
||||
|
||||
Reference in New Issue
Block a user