diff --git a/src/components/AllApps.vue b/src/components/AllApps.vue index cfd86c787e40c9dd4ed6a2a657dc46f211c27fe3..924ec88f7cf1daf6f5a1aef72fd82ed4e8eeed14 100755 --- a/src/components/AllApps.vue +++ b/src/components/AllApps.vue @@ -109,7 +109,6 @@ export default { handleOfficeClick(entry, e) { if (entry.type === 'onlyoffice') { e.preventDefault() - const newWindow = window.open('about:blank', '_blank') axios.get('/apps/murena_launcher/getDocumentsFolder').then(function(response) { const dir = response.data.dir if (dir && dir.length) { @@ -130,14 +129,12 @@ export default { }) .then(function(response) { if (response.data.id) { - newWindow.location.href = '/apps/onlyoffice/' + response.data.id + window.open('/apps/onlyoffice/' + response.data.id, '_self') } else if (response.data.error && response.data.error.length) { showError(response.data.error) - newWindow.close() } }).catch(function() { showError(entry.t('murena_launcher', 'Error when trying to connect to ONLYOFFICE')) - newWindow.close() }) } }).catch(function(error) { @@ -145,7 +142,6 @@ export default { const errorMessage = error.response.data.error showError(errorMessage) } - newWindow.close() }) }