From d141cb2163df63a8cb1c4cce6ef72487d8140ff1 Mon Sep 17 00:00:00 2001 From: xuzaixian Date: Wed, 13 Mar 2019 15:14:43 +0800 Subject: [PATCH] Fix: Title translation doesn't match which id is after 744. Question id is no longer equal to fId which id is after 744. Using 'fid' to find translation instead. --- plugins/leetcode.cn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/leetcode.cn.js b/plugins/leetcode.cn.js index 07d5d2d..0095e0b 100644 --- a/plugins/leetcode.cn.js +++ b/plugins/leetcode.cn.js @@ -74,7 +74,7 @@ plugin.getProblems = function(cb) { if (e) return cb(e); problems.forEach(function(problem) { - const title = titles[problem.fid]; + const title = titles[problem.id]; if (title) problem.name = title; });