diff options
Diffstat (limited to 'apps/updatenotification/js')
-rw-r--r-- | apps/updatenotification/js/legacy-notification.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/updatenotification/js/legacy-notification.js b/apps/updatenotification/js/legacy-notification.js deleted file mode 100644 index 7ae258c651b..00000000000 --- a/apps/updatenotification/js/legacy-notification.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors - * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc. - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -/** - * This only gets loaded if an update is available and the notifications app is not enabled for the user. - */ -window.addEventListener('DOMContentLoaded', function(){ - var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}), - element = $('<a>').attr('href', oc_updateState.updateLink).attr('target','_blank').text(text); - - OC.Notification.showHtml(element.prop('outerHTML'), { type: 'error' }); -}); |