Skip to content

Detect changes to window.location.href #2

@efung

Description

@efung

I'm using this extension with Firebase, and have set up multiple Firebase projects for production, staging, and development.

Every project has a unique domain, e.g. https://console.firebase.google.com/project/dev-example/ or https://console.firebase.google.com/project/prod-example/

The Firebase console allows you to switch between projects via a drop-down, which loads the new page. However, Environment Marker extension doesn't detect this switch, and continues to show the old banner.

I'm not a FED, but apparently, it's difficult to detect when the URL changes in the location bar, as there's no callback for it? I've seen suggestions of polling to see if it changes, e.g. this gist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions