updated notification javascript guidelines

This commit is contained in:
OvidijusParsiunas 2020-09-29 18:48:59 +00:00 committed by Jeremy Thomas
parent ee3dc52cd0
commit dc2f9bb5f3

View File

@ -55,7 +55,7 @@ meta:
{% capture notification_js_code %}
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
$notification = $delete.parentNode;
var $notification = $delete.parentNode;
$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);