Skip to content

Commit

Permalink
change to arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidely committed Jun 5, 2024
1 parent 68b7d98 commit e886039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/ext.networknotice.Notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

function init() {
if ( 'localStorage' in window ) {
document.querySelectorAll( '[data-component="network-notice"]' ).forEach( function( notice ) {
document.querySelectorAll( '[data-component="network-notice"]' ).forEach( ( notice ) => {
const key = notice.dataset.id;
if ( isInStorage( key ) ) {
notice.classList.add( 'd-none' );
Expand Down

0 comments on commit e886039

Please sign in to comment.