initialize value with false to prevent undefined.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-09-13 14:18:31 +01:00
parent b10b0e573d
commit d3bfdf495c
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 1 additions and 1 deletions

View File

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