mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-03-23 20:31:00 +08:00
js : fix test and example
This commit is contained in:
@@ -13,7 +13,7 @@ factory().then(function(ggwave) {
|
||||
// decode the audio waveform back to text
|
||||
var res = ggwave.decode(instance, waveform);
|
||||
|
||||
if (res != payload) {
|
||||
if (new TextDecoder("utf-8").decode(res) != payload) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user