aboutsummaryrefslogtreecommitdiff
path: root/ext/js/comm/clipboard-monitor.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/comm/clipboard-monitor.js')
-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;