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'
|
import { EventSubWsListener } from '@twurple/eventsub-ws'
|
||||||
|
|
||||||
const client_id = 'ib2n7v7mur7ab2mcxv7rjju2ctsyoi'
|
const client_id = 'ib2n7v7mur7ab2mcxv7rjju2ctsyoi'
|
||||||
|
const origin = 'https://ebs.sugoidogo.com'
|
||||||
|
|
||||||
const authProvider = new SugoiAuthProvider(client_id)
|
const authProvider = new SugoiAuthProvider(client_id, origin)
|
||||||
const webStorage = new WebStorage(authProvider)
|
const webStorage = new WebStorage(authProvider, undefined, origin)
|
||||||
const apiClient = new ApiClient({ authProvider })
|
const apiClient = new ApiClient({ authProvider })
|
||||||
const eventSub = new EventSubWsListener({ apiClient })
|
const eventSub = new EventSubWsListener({ apiClient })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user