Commit Graph

23 Commits

Author SHA1 Message Date
toasted-nutbread
5b96559df8
Error logging refactoring (#454)
* Create new logging methods on yomichan object

* Use new yomichan.logError instead of global logError

* Remove old logError

* Handle unhandledrejection events

* Add addEventListener stub

* Update log function

* Update error conversion to support more types

* Add log event

* Add API log function

* Log errors to the backend

* Make error/warning logs update the badge

* Clear log error indicator on extension button click

* Log correct URL on the background page

* Fix incorrect error conversion

* Remove unhandledrejection handling

Firefox doesn't support it properly.

* Remove unused argument type from log function

* Improve function name

* Change console.warn to yomichan.logWarning

* Move log forwarding initialization into main scripts
2020-04-26 16:55:25 -04:00
toasted-nutbread
f439d12718
Merge pull request #385 from toasted-nutbread/pitch-accents
Pitch accents
2020-04-05 12:51:27 -04:00
toasted-nutbread
ae246093a9 Create some tests for fullscreen elements, <iframe>s, and shadow DOMs 2020-04-04 16:56:06 -04:00
toasted-nutbread
a339bf69d3 Move set functions into core.js 2020-03-28 14:50:10 -04:00
toasted-nutbread
64fc0349a1 Update global declarations 2020-03-10 22:40:35 -04:00
toasted-nutbread
8f9b6534c6 Move stringReplaceAsync
It is only used in AnkiNoteBuilder and it was originally created
for this purpose.
2020-03-07 21:47:48 -05:00
toasted-nutbread
81fbe60da9 Define core globals only for extension scripts 2020-02-25 22:30:29 -05:00
toasted-nutbread
32cb1debb5 Add "guard-for-in": "error" 2020-02-25 22:15:50 -05:00
toasted-nutbread
9dd779836c Add "no-prototype-builtins" 2020-02-22 14:53:02 -05:00
toasted-nutbread
f1ccd52806 Explicitly indicate that "no-param-reassign" is allowed 2020-02-22 14:53:02 -05:00
toasted-nutbread
c0d91bffc4 Add no-shadow 2020-02-22 14:53:02 -05:00
toasted-nutbread
b3212d776e Stylistic rules 2020-02-22 14:52:09 -05:00
toasted-nutbread
4f39ac2079 Upadte eslintrc 2020-02-19 20:00:27 -05:00
toasted-nutbread
ab2cec0479
Merge pull request #352 from toasted-nutbread/github-actions
Setup GitHub actions
2020-02-16 21:11:18 -05:00
toasted-nutbread
070ae70f7c Create EventListenerCollection class 2020-02-16 18:47:57 -05:00
toasted-nutbread
e83167dcd1 Add eslint-plugin-no-unsanitized 2020-02-12 19:08:13 -05:00
toasted-nutbread
571a1fdbeb Update rules for test files 2020-02-11 22:22:16 -05:00
toasted-nutbread
e2ac478cb7 Define more globals 2020-02-11 22:22:16 -05:00
toasted-nutbread
4629fb3639 Change no-undef from off to error 2020-02-11 22:22:16 -05:00
toasted-nutbread
cb6e8d07d0 Add more settings to eslintrc 2020-02-11 22:22:16 -05:00
toasted-nutbread
5a1046bc90 Update arrow-parens to always 2019-11-26 22:06:27 -05:00
toasted-nutbread
663667306c Update eslintrc 2019-11-26 22:06:27 -05:00
233a115ff9 Fix broken link to eslintrc 2019-11-24 21:40:30 -08:00