1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

initialize value with false to prevent undefined.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2017-09-13 14:18:31 +01:00
parent b10b0e573d
commit d3bfdf495c

View File

@ -74,7 +74,7 @@ module.exports = React.createClass({
document.body.appendChild(textArea); document.body.appendChild(textArea);
textArea.select(); textArea.select();
let successful; let successful = false;
try { try {
successful = document.execCommand('copy'); successful = document.execCommand('copy');
} catch (err) { } catch (err) {