File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ const hcWarning = 'An existing HyperChat button has been detected. This ' +
1717 'Having multiple instances of the same scripts running WILL cause ' +
1818 'problems such as chat messages not loading.' ;
1919
20- const submodPrefix = isLiveTL ? 'submodules/chat/src/' : '' ;
21-
2220const chatLoaded = async ( ) : Promise < void > => {
2321 if ( ! isLiveTL && checkInjected ( hcWarning ) ) return ;
2422
2523 const metagetter = document . createElement ( 'script' ) ;
26- metagetter . src = chrome . runtime . getURL ( ` ${ submodPrefix } scripts/chat-metagetter.js` ) ;
24+ metagetter . src = chrome . runtime . getURL ( ' scripts/chat-metagetter.js' ) ;
2725 const ytcfg : any = await new Promise ( ( resolve ) => {
2826 window . addEventListener ( 'fetchMeta' , ( event ) => {
2927 resolve ( JSON . parse ( ( event as any ) . detail as string ) ) ;
@@ -41,7 +39,7 @@ const chatLoaded = async (): Promise<void> => {
4139 processSentMessage ( ( d as CustomEvent ) . detail ) ;
4240 } ) ;
4341 const script = document . createElement ( 'script' ) ;
44- script . src = chrome . runtime . getURL ( ` ${ submodPrefix } scripts/chat-interceptor.js` ) ;
42+ script . src = chrome . runtime . getURL ( ' scripts/chat-interceptor.js' ) ;
4543 document . body . appendChild ( script ) ;
4644
4745 // Handle initial data
You can’t perform that action at this time.
0 commit comments