Be explicit about using bytebuffer for base64 encoding
This commit is contained in:
parent
cfe6cd8b14
commit
a050af546d
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import 'stream-browserify' // see https://github.com/ericgundrum/pouch-websocket-sync-example/commit/2a4437b013092cc7b2cd84cf1499172c84a963a3
|
||||
import url from 'url'
|
||||
import ByteBuffer from 'bytebuffer'
|
||||
import MumbleClient from 'mumble-client'
|
||||
import mumbleConnect from 'mumble-client-websocket'
|
||||
import CodecsBrowser from 'mumble-client-codecs-browser'
|
||||
|
@ -430,7 +431,7 @@ class GlobalBindings {
|
|||
ui.texture = ko.pureComputed(() => {
|
||||
let raw = ui.rawTexture()
|
||||
if (!raw || raw.offset >= raw.limit) return null
|
||||
return 'data:image/*;base64,' + raw.toBase64()
|
||||
return 'data:image/*;base64,' + ByteBuffer.wrap(raw).toBase64()
|
||||
})
|
||||
ui.show_avatar = () => {
|
||||
let setting = this.settings.showAvatars()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue