react-text-to-speech
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -29,7 +29,7 @@ import React, { useEffect, useState } from 'react'; | ||
setSpeechIcon(startBtn); | ||
}, 1); | ||
}, 50); | ||
} | ||
useEffect(() => speechSynthesis.cancel(), []); | ||
return React.createElement("span", { role: 'button', style: style, onClick: speech }, speechIcon); | ||
useEffect(() => speechSynthesis === null || speechSynthesis === void 0 ? void 0 : speechSynthesis.cancel, []); | ||
return speechSynthesis && React.createElement("span", { role: 'button', style: style, onClick: speech }, speechIcon); | ||
} | ||
export default Speech; |
{ | ||
"name": "react-text-to-speech", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "An easy to use react component for the Web Speech API.", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
10171