-
Notifications
You must be signed in to change notification settings - Fork 6
SCAL-116040 host-event current iframe url #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/utils/processTrigger.ts
Outdated
return res(null); | ||
} | ||
if (messageType === HostEvent.GetIframeSrc) { | ||
return getIframeSrc(iFrame); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass the result into res check above
also test it out in app embed , if route changes return proper urls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, right.
Will test in app embed
src/utils/processTrigger.ts
Outdated
reload(iFrame); | ||
return res(null); | ||
} | ||
if (messageType === HostEvent.GetIframeSrc) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
commit: |
src/types.ts
Outdated
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl) | ||
* ``` | ||
* @version SDK: 1.35.0 | Thoughtspot: 10.4.cl | ||
* @hidden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why @hidden tag is added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, It's not available in docs, will raise one ticket for @ShashiSubramanya
src/types.ts
Outdated
* ```js | ||
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl) | ||
* ``` | ||
* @version SDK: 1.35.0 | Thoughtspot: 10.4.cl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughtspot version should be 10.4.0.cl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
516c468
to
ef44915
Compare
No description provided.