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:
Denis Barbaron
2020-09-20 16:17:25 +02:00
committed by GitHub
parent 6464a59c4f
commit d71e3fced4

View File

@@ -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) {