From 1d3ec8060a9faece817dc3f0bc93e399cde99f67 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 29 Sep 2023 14:16:59 +0300 Subject: [PATCH] fix styling of active tab on chrome/ium startup --- js/msg.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/msg.js b/js/msg.js index 4cc2035ef3..a51f06b6c2 100644 --- a/js/msg.js +++ b/js/msg.js @@ -133,10 +133,9 @@ } catch (e) { error = e; } - if (!error || isIgnorableError(error)) { + if (!error || isIgnorableError(err.message = error.message)) { return data; } - err.message = error.message; if (error.stack) err.stack = error.stack + '\n' + err.stack; return Promise.reject(err); } @@ -158,7 +157,7 @@ try { return await apiSend(m); } catch (e) { - return bgReadying && isIgnorableError(e) + return bgReadying && isIgnorableError(e.message) ? await bgReadying && apiSend(m) : Promise.reject(e); } finally {