fix: TypeAssertionExpression breaks Storybook builds

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-02-14 13:56:13 +09:00
parent b82821074b
commit 19e3753202
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99

View file

@ -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);
} }
} }
} }