Fix incorrect URL being used (#669)

This commit is contained in:
toasted-nutbread 2020-07-18 14:17:30 -04:00 committed by GitHub
parent a13a68990e
commit ffc0b6588e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}