summaryrefslogtreecommitdiff
path: root/ext/js/comm
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-29 10:31:45 +0700
committerGitHub <noreply@github.com>2023-12-29 03:31:45 +0000
commitd90d408279938d389019a8bed15c5eb95af7c8bc (patch)
tree0c81f456e3aaf853528c51b0d85ae54fcde05412 /ext/js/comm
parentc13ee62b84693346e28741d7f016c6700a2c27d4 (diff)
Comment updates (#481)
* comment updates * comment updates
Diffstat (limited to 'ext/js/comm')
-rw-r--r--ext/js/comm/clipboard-monitor.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/js/comm/clipboard-monitor.js b/ext/js/comm/clipboard-monitor.js
index d717dff2..b870a7a0 100644
--- a/ext/js/comm/clipboard-monitor.js
+++ b/ext/js/comm/clipboard-monitor.js
@@ -47,11 +47,13 @@ export class ClipboardMonitor extends EventDispatcher {
start() {
this.stop();
- // The token below is used as a unique identifier to ensure that a new clipboard monitor
- // hasn't been started during the await call. The check below the await call
- // will exit early if the reference has changed.
let canChange = false;
- /** @type {?import('core').TokenObject} */
+ /**
+ * This token is used as a unique identifier to ensure that a new clipboard monitor
+ * hasn't been started during the await call. The check below the await call
+ * will exit early if the reference has changed.
+ * @type {?import('core').TokenObject}
+ */
const token = {};
const intervalCallback = async () => {
this._timerId = null;