aboutsummaryrefslogtreecommitdiff
path: root/ext/js/yomitan.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:20:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:23:05 -0500
commitdcddbee07e20163ae167dd67fe58f0776f9acb64 (patch)
tree4a55c4bd42859f7bebae9d9cb31c6ae5fa0e3f9a /ext/js/yomitan.js
parent4b80a486181b902f3b1e089b584818ce725a91be (diff)
Update how ts comments are handled
Diffstat (limited to 'ext/js/yomitan.js')
-rw-r--r--ext/js/yomitan.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/yomitan.js b/ext/js/yomitan.js
index 3c0f7cb9..7cf67aec 100644
--- a/ext/js/yomitan.js
+++ b/ext/js/yomitan.js
@@ -37,7 +37,7 @@ if ((() => {
}
return (hasBrowser && !hasChrome);
})()) {
- // @ts-ignore - objects should have roughly the same interface
+ // @ts-expect-error - objects should have roughly the same interface
chrome = browser;
}
@@ -182,7 +182,7 @@ export class Yomitan extends EventDispatcher {
*/
sendMessage(...args) {
try {
- // @ts-ignore - issue with type conversion, somewhat difficult to resolve in pure JS
+ // @ts-expect-error - issue with type conversion, somewhat difficult to resolve in pure JS
chrome.runtime.sendMessage(...args);
} catch (e) {
this.triggerExtensionUnloaded();