runonpage
Run a function only when
window.location.toString()
match a given regex
Installation
npm install --save runonpage
Usage
const runon = require('runonpage');
runon(/\/show-stream-store$/, () => {
console.log('I\'m running on show-stream-store');
});
License
The MIT License (MIT)
Copyright (c) 2015 parro-it