forked from rosebudai/OpenRCT2-Web
1 parent
99197312ce
commit
02c18b61b6
1 file changed
+1
-1
@@ -221,7 +221,7 @@ namespace OpenRCT2::Scripting
|
||||
std::string str = JSToStdString(ctx, data);
|
||||
result = base64::decode_into<std::vector<uint8_t>>(str);
|
||||
}
|
||||
else if (JS_IsArrayBuffer(data))
|
||||
else if (JS_GetTypedArrayType(data) == JSTypedArrayEnum::JS_TYPED_ARRAY_UINT8)
|
||||
{
|
||||
// From Uint8Array
|
||||
size_t sz = 0;
|
||||
|
||||
Reference in new issue
Block a user