diff options
| -rw-r--r-- | _layouts/postlist.html | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/_layouts/postlist.html b/_layouts/postlist.html index ee9dde6..b6b29ef 100644 --- a/_layouts/postlist.html +++ b/_layouts/postlist.html @@ -64,6 +64,9 @@ layout: default      const ids =  {{ news_ids }};      for (currId of ids) {          const currentBanner = document.getElementById(currId); +        if (!currentBanner) { +            continue; +        }          const closeLink = currentBanner.firstElementChild;          const currentNewsClosed = localStorage.getItem(currId+"closed");          if (currentNewsClosed === "true") { | 
