mirror of https://github.com/vector-im/riot-web
initialize value with false to prevent undefined.
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
b10b0e573d
commit
d3bfdf495c
|
@ -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 New Issue