Vocabulary for Wanikani

Adds vocabulary to the wanikani dashboard

< 脚本 Vocabulary for Wanikani 的反馈

提问 / 留言

§
发布于:2017-02-05
编辑于:2017-02-05

Sort bug

I found a bug in the vocab sort function. Array.sort() expect the function to return an integer and not a boolean.

You should change

vocabList.sort((left, right) => {return left.level > right.level;});

to

vocabList.sort((left, right) => {return left.level - right.level;});
Eekone作者
§
发布于:2017-02-05

Fixed

发布留言

登录以发布留言。