From ffc0b6588e9f95d873fe87db6ba647a27c0a8b3d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 18 Jul 2020 14:17:30 -0400 Subject: Fix incorrect URL being used (#669) --- ext/bg/js/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg') diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index f0ed986c..f17e8897 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -1301,7 +1301,7 @@ class Backend { chrome.tabs.sendMessage(tab.id, {action: 'getUrl'}, {frameId: 0}, (response) => { let url = null; try { - url = yomichan.getMessageResponseResult(response); + ({url} = yomichan.getMessageResponseResult(response)); } catch (error) { // NOP } -- cgit v1.2.3