OiWorld / MindTheWord

An extension for Google Chrome that helps people learn new languages while they browse the web.
43 stars 47 forks source link

Breaking user defined translations #184

Closed ankit-m closed 7 years ago

ankit-m commented 7 years ago

The user defined translations are no longer working

oneerror

The following lines are generating the error. @rohankatyal29 you just need to handle these cases.

this.stats['translatorWiseWordCount'][0][currentMonth][this.translator][0] += numberOfTranslatedWords;
this.stats['translatorWiseWordCount'][0][currentMonth][this.translator][1] += numberOfTranslatedCharacters;
this.stats['translatorWiseWordCount'][0][currentMonth][this.translator][2] += numberOfTranslatedCharacters;
this.stats['translatorWiseWordCount'][1][currentDay][this.translator][0] += numberOfTranslatedWords;
this.stats['translatorWiseWordCount'][1][currentDay][this.translator][1] += numberOfTranslatedCharacters;
this.stats['translatorWiseWordCount'][1][currentDay][this.translator][2] += numberOfTranslatedCharacters;
rohankatyal29 commented 7 years ago

If you remove the previous version of the extension and then add the new one, this error should disappear. If you only refresh the rebased code, the local storage won't be refreshed.