Skip to content

Commit 11d9a4b

Browse files
korbinZhangianding1
authored andcommitted
Fix issue of getting cookies from leetcode-cn.com
1 parent bf9b5af commit 11d9a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/leetcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def load_session_cookie(browser):
167167

168168
session_cookie_raw = keyring.get_password('leetcode.vim', 'SESSION_COOKIE')
169169
if session_cookie_raw is None:
170-
cookies = getattr(browser_cookie3, browser)(domain_name='leetcode.com')
170+
cookies = getattr(browser_cookie3, browser)(domain_name=LC_BASE.split('/')[-1])
171171
for cookie in cookies:
172172
if cookie.name == 'LEETCODE_SESSION':
173173
session_cookie = cookie

0 commit comments

Comments
 (0)