From 1734a5e7ffa8c2d4c088cf4b7805d5458c9290d7 Mon Sep 17 00:00:00 2001 From: Martin B Date: Thu, 23 May 2024 16:07:42 +0100 Subject: [PATCH 1/2] fix(script): only trigger event listener once --- resources/scripts/ext.networknotice.Notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/ext.networknotice.Notice.js b/resources/scripts/ext.networknotice.Notice.js index 8f67d46..30bec58 100644 --- a/resources/scripts/ext.networknotice.Notice.js +++ b/resources/scripts/ext.networknotice.Notice.js @@ -54,6 +54,6 @@ if ( [ 'interactive', 'complete' ].includes( document.readyState ) ) { init(); } - } ); + }, { once = true } ); } }( window, document ) ); From e50972de6e47ee10eb66c1cd71cfe5a887debe4c Mon Sep 17 00:00:00 2001 From: Martin B Date: Thu, 23 May 2024 16:10:30 +0100 Subject: [PATCH 2/2] this is JS... --- resources/scripts/ext.networknotice.Notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/ext.networknotice.Notice.js b/resources/scripts/ext.networknotice.Notice.js index 30bec58..12148c8 100644 --- a/resources/scripts/ext.networknotice.Notice.js +++ b/resources/scripts/ext.networknotice.Notice.js @@ -54,6 +54,6 @@ if ( [ 'interactive', 'complete' ].includes( document.readyState ) ) { init(); } - }, { once = true } ); + }, { once: true } ); } }( window, document ) );