aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-07-18 14:17:30 -0400
committerGitHub <noreply@github.com>2020-07-18 14:17:30 -0400
commitffc0b6588e9f95d873fe87db6ba647a27c0a8b3d (patch)
treefa5546b87df2182479abf87cfd75514758e3c0f5
parenta13a68990eac548f8439050222ddf3cb97146199 (diff)
Fix incorrect URL being used (#669)
-rw-r--r--ext/bg/js/backend.js2
1 files changed, 1 insertions, 1 deletions
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
}