diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index b093ec33fe..e386bf64d9 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -552,9 +552,11 @@ export class Frontend { } } - // The token below is used as a unique identifier to ensure that a new _updatePopup call - // hasn't been started during the await. - /** @type {?import('core').TokenObject} */ + /** + * The token below is used as a unique identifier to ensure that a new _updatePopup call + * hasn't been started during the await. + * @type {?import('core').TokenObject} + */ const token = {}; this._updatePopupToken = token; const popup = await popupPromise; diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index ae78a97b5c..c0d3cabdb9 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -1664,6 +1664,7 @@ export class Backend { } /** + * This function works around the need to have the "tabs" permission to access tab.url. * @param {number} timeout * @param {boolean} multiple * @param {import('backend').FindTabsPredicate} predicate @@ -1671,7 +1672,6 @@ export class Backend { * @returns {Promise} */ async _findTabs(timeout, multiple, predicate, predicateIsAsync) { - // This function works around the need to have the "tabs" permission to access tab.url. const tabs = await this._getAllTabs(); let done = false; diff --git a/ext/js/comm/clipboard-monitor.js b/ext/js/comm/clipboard-monitor.js index 3b3a56a9d7..86d537fd44 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;