carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 372 forks source link

Add canFire option #101

Open srogier opened 9 years ago

srogier commented 9 years ago

Check if Ouibounce can be fired before triggering the callback.

May be usefull if you want to check something before triggering ouibounce (in my case, checking whether a modal is currently opened or not)

srogier commented 8 years ago

Hi! any news about this PR ?

lee-tms commented 8 years ago

+1

There are scenarios where you don't want it to fire (to only invoke on certain pages, for example), which I've done using an If statement wrapping around the ouibounce call, but this would be a neater solution.

thdk commented 8 years ago

+1 That's also what we need! I also had a fix for this but this solutions seems even better to me :)

clbagrat commented 8 years ago

any news?

patrick-mcdougle commented 6 years ago

An alternate solution might be as I've described in #137 which would allow code to disable the modal (perhaps through events or some other mechanism)