File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,15 @@ export enum SortingStrategy {
125
125
export const PREMIUM_URL_CN = "https://leetcode.cn/premium-payment/?source=vscode" ;
126
126
export const PREMIUM_URL_GLOBAL = "https://leetcode.com/subscribe/?ref=lp_pl&source=vscode" ;
127
127
128
+ const protocol = vscode . env . appName . includes ( 'Insiders' ) ? "vscode-insiders" : "vscode"
129
+
128
130
export const urls = {
129
131
// base urls
130
132
base : "https://leetcode.com" ,
131
133
graphql : "https://leetcode.com/graphql" ,
132
134
userGraphql : "https://leetcode.com/graphql" ,
133
135
login : "https://leetcode.com/accounts/login/" ,
134
- authLoginUrl : " https://leetcode.com/authorize-login/vscode /?path=leetcode.vscode-leetcode" ,
136
+ authLoginUrl : ` https://leetcode.com/authorize-login/${ protocol } /?path=leetcode.vscode-leetcode` ,
135
137
} ;
136
138
137
139
export const urlsCn = {
@@ -140,7 +142,7 @@ export const urlsCn = {
140
142
graphql : "https://leetcode.cn/graphql" ,
141
143
userGraphql : "https://leetcode.cn/graphql/noj-go/" ,
142
144
login : "https://leetcode.cn/accounts/login/" ,
143
- authLoginUrl : " https://leetcode.cn/authorize-login/vscode /?path=leetcode.vscode-leetcode" ,
145
+ authLoginUrl : ` https://leetcode.cn/authorize-login/${ protocol } /?path=leetcode.vscode-leetcode` ,
144
146
} ;
145
147
146
148
export const getUrl = ( key : string ) => {
You can’t perform that action at this time.
0 commit comments