Fixing the problem in this WordPress theme

The Twenty Twenty-One is a nice-looking theme with a “minimal” appearance, code and size for the minimalists out there (IMO). However, the JavaScript code in this theme has a small issue.