Created
February 26, 2015 01:00
-
-
Save jpdevries/e258b059edf6c4ed95c9 to your computer and use it in GitHub Desktop.
Safari Speech Synthesis Bug?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
it seems like Safari should know to do this itself | |
I am not sure if speechSynthesis instances are supposed persist navagitaion changes | |
*/ | |
$(window).bind('beforeunload', function(){ | |
try { window.speechSynthesis.cancel(); } catch (e) {} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment