add origin param to script
This commit is contained in:
+3
-2
@@ -3,9 +3,10 @@ import { ApiClient } from '@twurple/api'
|
||||
import { EventSubWsListener } from '@twurple/eventsub-ws'
|
||||
|
||||
const client_id = 'ib2n7v7mur7ab2mcxv7rjju2ctsyoi'
|
||||
const origin = 'https://ebs.sugoidogo.com'
|
||||
|
||||
const authProvider = new SugoiAuthProvider(client_id)
|
||||
const webStorage = new WebStorage(authProvider)
|
||||
const authProvider = new SugoiAuthProvider(client_id, origin)
|
||||
const webStorage = new WebStorage(authProvider, undefined, origin)
|
||||
const apiClient = new ApiClient({ authProvider })
|
||||
const eventSub = new EventSubWsListener({ apiClient })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user