Skip to content

Instantly share code, notes, and snippets.

@FlorianRappl
Created February 27, 2020 14:14
Show Gist options
  • Save FlorianRappl/e0ba59eba89b93d3e7b0e8e464b78830 to your computer and use it in GitHub Desktop.
Save FlorianRappl/e0ba59eba89b93d3e7b0e8e464b78830 to your computer and use it in GitHub Desktop.
const checkActive = location => location.pathname.startsWith('/sample');
window.registerApplication(checkActive, {
// lifecycle here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment