File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
v2/src/plugins/codeTypeChecking Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,12 @@ function replaceCustomPlaceholdersInLine(child, exportedVariables) {
612
612
* For snippets that contain supertokensUIInit, we add the dic id param parameter
613
613
*/
614
614
if ( line . includes ( "supertokensUIInit(" ) ) {
615
- line = line . split ( "supertokensUIInit(" ) . join ( "supertokensUIInit(\"supertokensui\", " ) ;
615
+ line = line . split ( "supertokensUIInit(" ) . join ( "(window as any).supertokensUIInit(\"supertokensui\", " ) ;
616
+ newLines . push ( line ) ;
617
+ continue ;
618
+ }
619
+ if ( line . includes ( "supertokensUI" ) && ! line . includes ( "supertokens-auth-react-script" ) ) {
620
+ line = line . split ( "supertokensUI" ) . join ( "(window as any).supertokensUI" ) ;
616
621
newLines . push ( line ) ;
617
622
continue ;
618
623
}
You can’t perform that action at this time.
0 commit comments