1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 02:23:44 +00:00

dont call clearclipboard in a loop

This commit is contained in:
Kyle Spearrin
2019-05-30 09:37:02 -04:00
parent cd46f64993
commit 38fc0432c3
2 changed files with 10 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ export class SystemService implements SystemServiceAbstraction {
this.clearClipboardTimeoutFunction = async () => {
const clipboardValueNow = await this.platformUtilsService.readFromClipboard();
if (clipboardValue === clipboardValueNow) {
this.platformUtilsService.copyToClipboard('');
this.platformUtilsService.copyToClipboard('', { clearing: true });
}
};
this.clearClipboardTimeout = setTimeout(async () => {