diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-06-09 22:10:01 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-05 21:32:43 +0900 |
commit | 0d3cb2b613f0d03972cbb4217c4d705946959975 (patch) | |
tree | f550323006a95d4439fd22994b84c6fae7fa2168 | |
parent | 21a0f2294b51f6ce78134384d34f302fb2cb8614 (diff) |
Show caught error on message listener
-rw-r--r-- | src/background/infrastructures/ContentMessageListener.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/background/infrastructures/ContentMessageListener.ts b/src/background/infrastructures/ContentMessageListener.ts index 4a6a3b8..6189e7c 100644 --- a/src/background/infrastructures/ContentMessageListener.ts +++ b/src/background/infrastructures/ContentMessageListener.ts @@ -34,6 +34,7 @@ export default class ContentMessageListener { return {}; } return ret.catch((e) => { + console.error(e); if (!sender.tab || !sender.tab.id) { return; } @@ -43,6 +44,7 @@ export default class ContentMessageListener { }); }); } catch (e) { + console.error(e); if (!sender.tab || !sender.tab.id) { return; } |