mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
fix: TypeAssertionExpression breaks Storybook builds
This commit is contained in:
parent
b82821074b
commit
19e3753202
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ function callback(response?: string) {
|
||||||
function onReceivedMessage(message: MessageEvent) {
|
function onReceivedMessage(message: MessageEvent) {
|
||||||
if (message.data.token) {
|
if (message.data.token) {
|
||||||
if (props.instanceUrl && new URL(message.origin).host === new URL(props.instanceUrl).host) {
|
if (props.instanceUrl && new URL(message.origin).host === new URL(props.instanceUrl).host) {
|
||||||
callback(<string>message.data.token);
|
callback(message.data.token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue