summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Messages.js1
1 files changed, 1 insertions, 0 deletions
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};