fix
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
// place files you want to import through the `$lib` alias in this folder.
|
||||
|
||||
import { building } from "$app/environment";
|
||||
import { createTwitchClient } from "./twitch";
|
||||
|
||||
type WLEDAPI = {
|
||||
@ -63,6 +64,9 @@ export const createLedClient = (_addr: string) => {
|
||||
};
|
||||
|
||||
export const twitchClient = createTwitchClient();
|
||||
twitchClient.subscribeToFollow();
|
||||
|
||||
if (!building) {
|
||||
twitchClient.subscribeToFollow();
|
||||
}
|
||||
|
||||
export const client = createLedClient("192.168.1.215");
|
||||
|
Reference in New Issue
Block a user