From e3801d4e3ade3f8a9990136ea1e2302a5690552b Mon Sep 17 00:00:00 2001 From: ner0 <2269603+ner00@users.noreply.github.com> Date: Wed, 16 Jul 2025 12:18:38 +0100 Subject: [PATCH 1/2] Update html5_notifier.js for RC v1.7 Serve resources via static.php in public_html/ --- html5_notifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5_notifier.js b/html5_notifier.js index 9e00ed8..c25e7e7 100644 --- a/html5_notifier.js +++ b/html5_notifier.js @@ -15,7 +15,7 @@ function rcmail_show_notification(message) { if ("Notification" in window) { var notification = new Notification(rcmail.gettext('notification_title', 'html5_notifier').replace('[from]', message.from), { - icon: './plugins/html5_notifier/images/new_mail.png', + icon: './static.php/plugins/html5_notifier/images/new_mail.png', body: message.subject }); notification.onclick = function() { From 80d1d8ce1897de3387a654d0cc4ae18aee780432 Mon Sep 17 00:00:00 2001 From: ner0 <2269603+ner00@users.noreply.github.com> Date: Fri, 3 Oct 2025 17:00:26 +0100 Subject: [PATCH 2/2] Update html5_notifier for RC v1.7 Use rcmail.assets_path to serve assets. --- html5_notifier.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html5_notifier.js b/html5_notifier.js index c25e7e7..b49115c 100644 --- a/html5_notifier.js +++ b/html5_notifier.js @@ -15,7 +15,7 @@ function rcmail_show_notification(message) { if ("Notification" in window) { var notification = new Notification(rcmail.gettext('notification_title', 'html5_notifier').replace('[from]', message.from), { - icon: './static.php/plugins/html5_notifier/images/new_mail.png', + icon: rcmail.assets_path('plugins/html5_notifier/images/new_mail.png'), body: message.subject }); notification.onclick = function() { @@ -143,3 +143,4 @@ if (window.rcmail) rcmail.addEventListener('plugin.showNotification', rcmail_show_notification); rcmail.addEventListener('init', rcmail_check_notifications); } +