Fix main header being redrawn every 100ms

pull/434/head
sachaaaaa 6 years ago
parent 33d789b688
commit 4a35492fe0

@ -88,7 +88,9 @@ export class MainHeader extends React.Component<Props, any> {
setInterval(() => {
const clipboardText = clipboard.readText();
this.setState({ clipboardText });
if (this.state.clipboardText !== clipboardText) {
this.setState({ clipboardText });
}
}, 100);
}

Loading…
Cancel
Save