mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-17 03:20:39 +00:00
Remove debug messages and move data inflation into api fn
This commit is contained in:
@ -630,7 +630,11 @@ cqi.api.APIClient = class APIClient {
|
||||
async ext_corpus_static_data(corpus) {
|
||||
const fn_name = 'ext_corpus_static_data';
|
||||
const fn_args = {corpus: corpus};
|
||||
return await this.#request(fn_name, fn_args);
|
||||
let compressedEncodedData = await this.#request(fn_name, fn_args);
|
||||
let encodedData = pako.inflate(compressedEncodedData);
|
||||
let textDecoder = new TextDecoder();
|
||||
let data = textDecoder.decode(encodedData);
|
||||
return JSON.parse(data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user