From 5cb5b156b2b0be68459813920ceda26e63c0011a Mon Sep 17 00:00:00 2001 From: mrtnmtth Date: Sun, 4 Oct 2020 15:51:44 +0200 Subject: [PATCH] Fix legacy update notifications Signed-off-by: mrtnmtth --- apps/updatenotification/js/legacy-notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/updatenotification/js/legacy-notification.js b/apps/updatenotification/js/legacy-notification.js index 39d0d8920d..7480505d8b 100644 --- a/apps/updatenotification/js/legacy-notification.js +++ b/apps/updatenotification/js/legacy-notification.js @@ -17,5 +17,5 @@ window.addEventListener('DOMContentLoaded', function(){ var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}), element = $('').attr('href', oc_updateState.updateLink).attr('target','_blank').text(text); - OC.Notification.showHtml(element, { type: 'error' }); + OC.Notification.showHtml(element.prop('outerHTML'), { type: 'error' }); });