mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Fix issue on File Explorer (#97)
* Fix issue on File Explorer While getting a file on a controlled device, the connection to minicap service was stopping due to the URL redirection. Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Copyright © 2020 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
module.exports = function ExplorerCtrl($scope) {
|
||||
$scope.explorer = {
|
||||
search: '',
|
||||
@@ -56,7 +60,7 @@ module.exports = function ExplorerCtrl($scope) {
|
||||
$scope.control.fsretrieve(path)
|
||||
.then(function(result) {
|
||||
if (result.body) {
|
||||
location.href = result.body.href + '?download'
|
||||
window.open(result.body.href + '?download', '_blank')
|
||||
}
|
||||
})
|
||||
.catch(function(err) {
|
||||
|
||||
Reference in New Issue
Block a user