File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ var DEFAULT_SYS_CONFIG = {
77 URL_BASE : 'https://leetcode.com' ,
88 URL_LOGIN : 'https://leetcode.com/accounts/login/' ,
99 URL_PROBLEMS : 'https://leetcode.com/api/problems/$category/' ,
10- URL_PROBLEM : 'https://leetcode.com/graphql' ,
10+ URL_PROBLEM : 'https://leetcode.com/problems/$slug/description/' ,
11+ URL_PROBLEM_DETAIL : 'https://leetcode.com/graphql' ,
1112 URL_TEST : 'https://leetcode.com/problems/$slug/interpret_solution/' ,
1213 URL_SUBMIT : 'https://leetcode.com/problems/$slug/submit/' ,
1314 URL_SUBMISSIONS : 'https://leetcode.com/api/submissions/$slug' ,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ plugin.getProblem = function(problem, cb) {
117117 var user = session . getUser ( ) ;
118118 if ( problem . locked && ! user . paid ) return cb ( 'failed to load locked problem!' ) ;
119119
120- var opts = makeOpts ( config . URL_PROBLEM ) ;
120+ var opts = makeOpts ( config . URL_PROBLEM_DETAIL ) ;
121121 opts . headers . Origin = config . URL_BASE ;
122122 opts . headers . Referer = problem . link ;
123123
You can’t perform that action at this time.
0 commit comments