summaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-01 09:08:49 +0100
committerpraschke <stel@comfy.monster>2023-10-01 09:08:49 +0100
commit97a6cedbcd1a6e791b55b612086eb8d30ed1ca1f (patch)
tree034741722f1462b3c42ba3585bafa0361aa46f30 /ext/js
parent6769ff501c8b5d20e9056de57eff5a62a92339d3 (diff)
remove yomichan.connect()
it was only used in the cross-frame api. additionally, this comment on triggerExtensionUnloaded is incorrect.
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/yomichan.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/ext/js/yomichan.js b/ext/js/yomichan.js
index 6eea952e..e4fcd4bc 100644
--- a/ext/js/yomichan.js
+++ b/ext/js/yomichan.js
@@ -172,24 +172,6 @@ class Yomichan extends EventDispatcher {
}
}
- /**
- * Runs `chrome.runtime.connect()` with additional exception handling events.
- * @param {...*} args The arguments to be passed to `chrome.runtime.connect()`.
- * @returns {Port} The resulting port.
- * @throws {Error} Errors thrown by `chrome.runtime.connect()` are re-thrown.
- */
- connect(...args) {
- try {
- return chrome.runtime.connect(...args);
- } catch (e) {
- this.triggerExtensionUnloaded();
- throw e;
- }
- }
-
- /**
- * Runs chrome.runtime.connect() with additional exception handling events.
- */
triggerExtensionUnloaded() {
this._isExtensionUnloaded = true;
if (this._isTriggeringExtensionUnloaded) { return; }