Skip to content

MzpNavigation doesn't check for MzpSupports availability correctly #1085

@janbrasna

Description

@janbrasna

Description

MzpNavigation.menuButtonVisible() and MzpNavigation.setAria() don't check for window.MzpSupports availability the way it was intended to.

Steps to reproduce

MzpNavigation.setAria = () => {
if (MzpSupports !== 'undefined' && MzpSupports.intersectionObserver) {

Expected result

typeof MzpSupports !== 'undefined'

Actual result

MzpSupports !== 'undefined'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions