diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-01-20 23:13:17 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 04:13:17 +0000 | 
| commit | 6ba1ffe74558dd174e3308d48885fb068fa37d55 (patch) | |
| tree | 5519bbf972096e0e3370171d2b62a26d6164d671 /ext/js/app/popup-proxy.js | |
| parent | ebdde1ee612a262256ad0384131e53bc29b1e10f (diff) | |
WebExtension class (#551)
* Add WebExtension class
* Use WebExtension class
* Use WebExtension instance for all runtime message sending
* Use getUrl
* Add a sendMessage variant which ignores the response and error
Diffstat (limited to 'ext/js/app/popup-proxy.js')
| -rw-r--r-- | ext/js/app/popup-proxy.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ext/js/app/popup-proxy.js b/ext/js/app/popup-proxy.js index fa4a448b..856ec086 100644 --- a/ext/js/app/popup-proxy.js +++ b/ext/js/app/popup-proxy.js @@ -320,7 +320,7 @@ export class PopupProxy extends EventDispatcher {          try {              return await this._invoke(action, params);          } catch (e) { -            if (!yomitan.isExtensionUnloaded) { throw e; } +            if (!yomitan.webExtension.unloaded) { throw e; }              return defaultReturnValue;          }      } |