diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-12 11:19:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 11:19:43 +0900 |
commit | 47b4d79e646a990699a1a4ca1da559a4aeec1c91 (patch) | |
tree | c33f61ba85354f18c68d4a054baa30ff0c41c153 /ext/js/comm/mecab.js | |
parent | 9162d950eb2b3aa0339d95a98a60be89b8315f26 (diff) | |
parent | d06029ea8c4244f40f9ddfeec5154f9ef2a4c053 (diff) |
Merge branch 'master' into offscreen-db
Diffstat (limited to 'ext/js/comm/mecab.js')
-rw-r--r-- | ext/js/comm/mecab.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/comm/mecab.js b/ext/js/comm/mecab.js index 50f13ddf..c7314605 100644 --- a/ext/js/comm/mecab.js +++ b/ext/js/comm/mecab.js @@ -19,7 +19,7 @@ import {EventListenerCollection} from '../core.js'; /** - * This class is used to connect Yomichan to a native component that is + * This class is used to connect Yomitan to a native component that is * used to parse text into individual terms. */ export class Mecab { @@ -99,7 +99,7 @@ export class Mecab { /** * Gets the local API version being used. - * @returns {number} An integer representing the API version that Yomichan uses. + * @returns {number} An integer representing the API version that Yomitan uses. */ getLocalVersion() { return this._version; @@ -219,7 +219,7 @@ export class Mecab { } async _setupPort2() { - const port = chrome.runtime.connectNative('yomichan_mecab'); + const port = chrome.runtime.connectNative('yomitan_mecab'); this._eventListeners.addListener(port.onMessage, this._onMessage.bind(this)); this._eventListeners.addListener(port.onDisconnect, this._onDisconnect.bind(this)); this._port = port; @@ -228,7 +228,7 @@ export class Mecab { const {version} = await this._invoke('get_version', {}); this._remoteVersion = version; if (version !== this._version) { - throw new Error(`Unsupported MeCab native messenger version ${version}. Yomichan supports version ${this._version}.`); + throw new Error(`Unsupported MeCab native messenger version ${version}. Yomitan supports version ${this._version}.`); } } catch (e) { if (this._port === port) { |