Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.43k stars 435 forks source link

onHashChange not working #621

Open Alcadur opened 7 years ago

Alcadur commented 7 years ago

I use phantomjs with karma and jasmine. Set event listener:

window.addEventListener('hashchange', (event) => {
    console.log("was change");
});

and then change hash: location.hash = 'some-hash' but was change not showing up on terminal