mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-27 06:30:37 +00:00
Remove debug messages and move data inflation into api fn
This commit is contained in:
1 parent
960f36c740
commit
203faa4257
2 files changed
+6
-10
No files matched your search
@@ -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