mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Better death star
This commit is contained in:
@@ -197,12 +197,20 @@ class Stream extends React.Component {
|
||||
}
|
||||
|
||||
launchDeathStar = () => {
|
||||
for (let i = 0; i < 20; i++) {
|
||||
this.props.postComment({
|
||||
asset_id: this.props.root.asset.id,
|
||||
body: 'death is certain',
|
||||
});
|
||||
}
|
||||
let i = 100;
|
||||
const launch = () => {
|
||||
setTimeout(() => {
|
||||
this.props.postComment({
|
||||
asset_id: this.props.root.asset.id,
|
||||
body: 'death is certain',
|
||||
});
|
||||
i--;
|
||||
if (i > 0) {
|
||||
launch();
|
||||
}
|
||||
}, 500);
|
||||
};
|
||||
launch();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user