Skip to content

Sitewide banner script crashes when banner markup is absent #2449

@yugalkaushik

Description

@yugalkaushik

Description

Inline banner logic in header.html assumes .sitewide-banner exists, so pages without that element throw Cannot read properties of null (reading 'classList') and abort later scripts.

Steps to Reproduce

open /programs/ (or any page without the banner);
observe the console error TypeError: Cannot read properties of null (reading 'classList')

Expected Behavior

No console errors; remaining inline scripts execute.

Screenshots

Image

Environment:

  • OS: Linux
  • Browser: Chrome
  • Version:
  • Device: Desktop

Contributor Guides and Handbook

The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions