From 37baf8a2c6dde46ff9e7c0259a90ed8e1bbe0e3e Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 26 Feb 2022 10:32:58 +0300 Subject: [PATCH] reuse deepCopy --- js/msg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/msg.js b/js/msg.js index 5571d420..308f25ac 100644 --- a/js/msg.js +++ b/js/msg.js @@ -1,4 +1,4 @@ -/* global URLS deepCopy deepMerge getOwnTab */// toolbox.js - not used in content scripts +/* global URLS deepCopy getOwnTab */// toolbox.js - not used in content scripts 'use strict'; (() => { @@ -163,7 +163,7 @@ if (!bg || !bg.msg || !bg.msg.ready && await bg.bgReady.all && false) { res = msg.send(message); } else { - res = deepMerge(await bg.msg._execute(TARGETS.extension, message, { + res = deepCopy(await bg.msg._execute(TARGETS.extension, message, { // Using a fake id for our Options frame as we want to fetch styles early frameId: window === top ? 0 : 1, tab: NEEDS_TAB_IN_SENDER.includes(path.join('.')) && await getOwnTab(),