From d90d408279938d389019a8bed15c5eb95af7c8bc Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Fri, 29 Dec 2023 10:31:45 +0700 Subject: Comment updates (#481) * comment updates * comment updates --- ext/js/comm/clipboard-monitor.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ext/js/comm') 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; -- cgit v1.2.3