mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
14 lines
557 B
Markdown
14 lines
557 B
Markdown
|
---
|
||
|
"@logto/experience": patch
|
||
|
---
|
||
|
|
||
|
skip non-object messages in the native environment
|
||
|
|
||
|
In the `WKWebView` of new iOS versions, some script will constantly post messages to the
|
||
|
window object with increasing numbers as the message content ("1", "2", "3", ...).
|
||
|
|
||
|
Ideally, we should check the source of the message with Logto-specific identifier in the
|
||
|
`event.data`; however, this change will result a breaking change for the existing
|
||
|
native SDK implementations. Add the `isObject` check to prevent the crazy messages while
|
||
|
keeping the backward compatibility.
|