mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
Fix worker
This commit is contained in:
@ -172,7 +172,14 @@ function CSpellchecker(settings)
|
||||
_port.onmessage = function(message) {
|
||||
_worker.oncommand && _worker.oncommand(message.data);
|
||||
};
|
||||
_port.postMessage({ "type" : "init", "dictionaries_path" : dictionariesPath, "languages" : this.languages });
|
||||
let langs = {};
|
||||
for (let i in this.languages)
|
||||
{
|
||||
if (!this.languages.hasOwnProperty(i))
|
||||
continue;
|
||||
langs[i] = this.languages[i]["name"];
|
||||
}
|
||||
_port.postMessage({ "type" : "init", "dictionaries_path" : dictionariesPath, "languages" : langs });
|
||||
|
||||
this.command = function(message)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user