WiP updates
This commit is contained in:
parent
6706d93bc1
commit
4fce4b6f81
27 changed files with 763 additions and 85 deletions
|
@ -41,7 +41,7 @@ export class UntrustedContentHost extends Component {
|
|||
}
|
||||
|
||||
isInitialized() {
|
||||
return !!this.accessToken;
|
||||
return !!this.accessToken && !!this.props.contentProps;
|
||||
}
|
||||
|
||||
receiveMessage(evt) {
|
||||
|
@ -73,7 +73,6 @@ export class UntrustedContentHost extends Component {
|
|||
const msgId = this.rpcCounter;
|
||||
|
||||
this.sendMessage('rpcRequest', {
|
||||
method,
|
||||
params,
|
||||
msgId
|
||||
});
|
||||
|
@ -126,6 +125,10 @@ export class UntrustedContentHost extends Component {
|
|||
this.handleUpdate();
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
this.handleUpdate();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
clearTimeout(this.refreshAccessTokenTimeout);
|
||||
window.removeEventListener('message', this.receiveMessageHandler, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue