mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
bill is a dummy
This commit is contained in:
parent
03ed133846
commit
4b268a5826
@ -28,10 +28,12 @@ export class RenderRoomMessageComposer implements IMessageComposer<ConstructorPa
|
||||
|
||||
if(!url) return;
|
||||
|
||||
const data = url.split(',')[1];
|
||||
const base64Data = url.split(',')[1];
|
||||
const binaryData = atob(base64Data);
|
||||
|
||||
const codes: Byte[] = [];
|
||||
|
||||
for(let i = 0; i < data.length; i++) codes.push(new Byte(data.charCodeAt(i)));
|
||||
for(let i = 0; i < binaryData.length; i++) codes.push(new Byte(binaryData.charCodeAt(i)));
|
||||
|
||||
this._data.push(codes.length, ...codes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user