From 0d3cb2b613f0d03972cbb4217c4d705946959975 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 9 Jun 2021 22:10:01 +0900 Subject: Show caught error on message listener --- src/background/infrastructures/ContentMessageListener.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3