AppTile: Test if widgetUrl startsWith instead of has a substring
The event origin should be at the beginning of the URL.
This commit is contained in:
parent
6e49926228
commit
24de01e21d
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ export default React.createClass({
|
|||
event.origin = event.originalEvent.origin;
|
||||
}
|
||||
|
||||
if (this.state.widgetUrl.indexOf(event.origin) === -1) {
|
||||
if (!this.state.widgetUrl.startsWith(event.origin)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue