Skip to content

Commit 6ebda27

Browse files
devvaannshabose
authored andcommitted
Fix: Broken links in EventManager.js file
1 parent 2450a0f commit 6ebda27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/EventManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ define(function (require, exports, module) {
121121
* listen to these events should register their named eventHandler with `EventManager`.
122122
*
123123
* By default, only origins part of `window.Phoenix.TRUSTED_ORIGINS` are whitelisted. If your extension is
124-
* bringing in a cross-origin ifrmame say (`http://mydomain.com`), you should add it to the whitelist by setting
125-
* `window.Phoenix.TRUSTED_ORIGINS ("http://mydomain.com") = true;`
124+
* bringing in a cross-origin ifrmame say [`http://mydomain.com`], you should add it to the whitelist by setting
125+
* `window.Phoenix.TRUSTED_ORIGINS ["http://mydomain.com"] = true;`
126126
*
127127
* @function
128128
* @global
@@ -141,7 +141,7 @@ define(function (require, exports, module) {
141141
* // Note: for event handler names, please change the `extensionName` to your extension name
142142
* // to prevent collisions. EventHandlers starting with `ph-` and `br-` are reserved as system handlers
143143
* // and not available for use in extensions.
144-
* window.Phoenix.TRUSTED_ORIGINS ("http://mydomain.com") = true;
144+
* window.Phoenix.TRUSTED_ORIGINS ["http://mydomain.com"] = true;
145145
* EventManager.registerEventHandler("`extensionName`-iframeMessageHandler", exports);
146146
* exports.on("iframeHelloEvent", function(_ev, event){
147147
* console.log(event.data.message);

0 commit comments

Comments
 (0)