Set logs, filemanager and terminal title programmatically to avoid angular template leaks
This commit is contained in:
@@ -58,7 +58,10 @@ angular.forEach(
|
||||
);
|
||||
angular.module('ngDrag', []).directive(ngDragEventDirectives);
|
||||
|
||||
app.controller('FileManagerController', ['$scope', '$timeout', 'Client', function ($scope, $timeout, Client) {
|
||||
app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Client', function ($scope, $translate, $timeout, Client) {
|
||||
var title = $translate.instant('filemanager.title');
|
||||
if (title !== 'filemanager.title') window.document.title = title;
|
||||
|
||||
var search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
|
||||
|
||||
$scope.initialized = false;
|
||||
|
||||
Reference in New Issue
Block a user