Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-20 13:30:35 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-20 13:42:08 +0300
commit6fcd075730dbd63d5dbb69da0ca5983b51a7240e (patch)
tree3b91e443159f6322e9af53bf495c17bd76c0ab7b /apps/updatenotification
parentb2e3466005f8fec7a753b078871f54c9fd5debb8 (diff)
Use DOMContentLoaded and fix sharebymail loading issue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r--apps/updatenotification/js/legacy-notification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/js/legacy-notification.js b/apps/updatenotification/js/legacy-notification.js
index d45ba8793c4..39d0d8920de 100644
--- a/apps/updatenotification/js/legacy-notification.js
+++ b/apps/updatenotification/js/legacy-notification.js
@@ -13,7 +13,7 @@
/**
* This only gets loaded if an update is available and the notifications app is not enabled for the user.
*/
-$(document).ready(function(){
+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);