From 71c82b50849d8d70bb5bc410fcdf814837358143 Mon Sep 17 00:00:00 2001 From: hackademix Date: Fri, 14 Sep 2018 07:18:10 +0200 Subject: Gracefully handle legacy message recipients. --- src/lib/Messages.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib/Messages.js b/src/lib/Messages.js index 1c11870..de11e66 100644 --- a/src/lib/Messages.js +++ b/src/lib/Messages.js @@ -59,6 +59,7 @@ }, async send(name, args = {}, recipientInfo = null) { args.__meta = {name, recipientInfo}; + args._messageName = name; // legacy protocol, for embedders if (recipientInfo && "tabId" in recipientInfo) { let opts; if ("frameId" in recipientInfo) opts = {frameId: recipientInfo.frameId}; -- cgit v1.2.3