Make the corpus analysis runnable again

This commit is contained in:
Patrick Jentsch 2021-01-14 15:18:50 +01:00
parent 223ae773d6
commit 84c86c81e7
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class Client {
tmp_first_cpos.push(results.data.matches[dataIndex].c[0]); tmp_first_cpos.push(results.data.matches[dataIndex].c[0]);
tmp_last_cpos.push(results.data.matches[dataIndex].c[1]); tmp_last_cpos.push(results.data.matches[dataIndex].c[1]);
} }
nopaque.socket.emit('corpus_analysis_get_match_with_full_context', this.socket.emit('corpus_analysis_get_match_with_full_context',
{type: resultsType, {type: resultsType,
data_indexes: dataIndexes, data_indexes: dataIndexes,
first_cpos: tmp_first_cpos, first_cpos: tmp_first_cpos,
@ -279,4 +279,4 @@ export {
Client, Client,
ClientEventListener, ClientEventListener,
ListenerCallback, ListenerCallback,
}; };

View File

@ -157,7 +157,7 @@ document.addEventListener("DOMContentLoaded", () => {
// Initialize the client for server client communication in dynamic mode // Initialize the client for server client communication in dynamic mode
let corpusId = {{ corpus.id }} let corpusId = {{ corpus.id }}
const client = new Client({'corpusId': corpusId, const client = new Client({'corpusId': corpusId,
'socket': nopaque.socket, 'socket': nopaque.appClient.socket,
'logging': true, 'logging': true,
'dynamicMode': true}); 'dynamicMode': true});
/** /**