mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
added origin in postMessage() call
This commit is contained in:
@@ -14,5 +14,5 @@ function messagePageScript() {
|
||||
window.postMessage({
|
||||
direction: "from-content-script",
|
||||
message: "Message from the content script"
|
||||
}, "*");
|
||||
}, "https://mdn.github.io");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user