mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-29 21:59:40 +03:00
initialize value with false to prevent undefined.
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b10b0e573d
commit
d3bfdf495c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue