Fix: unwrap error

This commit is contained in:
eight 2018-10-12 01:11:17 +08:00
parent 4d42765d6c
commit f0c0bc4d6a

View File

@ -124,7 +124,7 @@ const msg = (() => {
if (isExtension) { if (isExtension) {
exchangeSet(message); exchangeSet(message);
} }
let request = tabSend(tab.id, message, options); let request = tabSend(tab.id, message, options).then(unwrapData);
if (message.id) { if (message.id) {
request = withCleanup(request, () => bg._msg.storage.delete(message.id)); request = withCleanup(request, () => bg._msg.storage.delete(message.id));
} }