aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-11 20:54:23 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-23 17:50:46 +0200
commit1f2eee449e2c1e0baf20dba038da7eaf3424aefe (patch)
tree68a13baccf2d958daf3966f586702f44bd3c9f41 /ext/bg/js/settings.js
parentf97877a2097c8b27b75099e489b93db255cb68be (diff)
mecab refactoring and bugfix
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index 0013291a..f4fe032a 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -154,7 +154,6 @@ async function formWrite(options) {
function formSetupEventListeners() {
$('input, select, textarea').not('.anki-model').not('.ignore-form-changes *').change(utilAsync(onFormOptionsChanged));
- $('#parsing-mecab-enable').change(onParseMecabChanged);
$('.anki-model').change(utilAsync(onAnkiModelChanged));
}
@@ -442,20 +441,6 @@ function onMessage({action, params}, sender, callback) {
/*
- * Text parsing
- */
-
-function onParseMecabChanged(e) {
- const mecab = utilBackend().mecab;
- if (e.target.checked) {
- mecab.startListener();
- } else {
- mecab.stopListener();
- }
-}
-
-
-/*
* Anki
*/