Skip to content

Commit

Permalink
Use latin-1 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 11, 2024
1 parent c31a827 commit c7d144f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ebs/src/modules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function getConfig(): Promise<Config> {
export async function broadcastConfigRefresh(config: Config) {
return sendPubSubMessage({
type: "config_refreshed",
data: strFromU8(compressSync(strToU8(JSON.stringify(config)))),
data: strFromU8(compressSync(strToU8(JSON.stringify(config), true))),
});
}

Expand Down
3 changes: 2 additions & 1 deletion frontend/www/src/modules/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Twitch.ext.listen("global", async (_t, _c, message) => {

switch (pubSubMessage.type) {
case "config_refreshed":
const config = JSON.parse(strFromU8(decompressSync(strToU8(pubSubMessage.data)))) as Config;
console.log(pubSubMessage.data);
const config = JSON.parse(strFromU8(decompressSync(strToU8(pubSubMessage.data, true)))) as Config;
// console.log(config);
await setConfig(postProcessConfig(config));
await renderRedeemButtons();
Expand Down

0 comments on commit c7d144f

Please sign in to comment.