mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 05:15:07 +00:00
LibWeb: Change the IDL type of MessageEvent::data to any
This commit is contained in:
parent
ded8e84f32
commit
b53fc8ad3d
4 changed files with 9 additions and 10 deletions
|
@ -203,7 +203,7 @@ void WebSocket::on_message(ByteBuffer message, bool is_text)
|
|||
return;
|
||||
if (is_text) {
|
||||
auto text_message = String(ReadonlyBytes(message));
|
||||
dispatch_event(MessageEvent::create(EventNames::message, text_message, url()));
|
||||
dispatch_event(MessageEvent::create(EventNames::message, JS::js_string(wrapper()->vm(), text_message), url()));
|
||||
return;
|
||||
}
|
||||
// type indicates that the data is Binary and binaryType is "blob"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue