From 3bb5c69541d975993dfabc934524feb12b10e9f9 Mon Sep 17 00:00:00 2001 From: marnixah Date: Fri, 21 Jan 2022 11:34:05 +0100 Subject: [PATCH] fix: send json to tv --- src/classes/tv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/tv.ts b/src/classes/tv.ts index 4eb3fee..227fdbd 100644 --- a/src/classes/tv.ts +++ b/src/classes/tv.ts @@ -16,7 +16,7 @@ export default class TV { headers: { 'Content-Type': 'application/json', }, - body: command, + body: JSON.stringify({ command: command }), }); }