mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Rename publitask to publiPromise to respect the name used in JavaScript
This commit is contained in:
parent
f836086f07
commit
e476f04011
@ -24,7 +24,7 @@
|
||||
async function applyData(dat) {
|
||||
const Cite = require('citation-js');
|
||||
// Start an async task to get publi data
|
||||
let publitask = Cite.async(dat.doi.string)
|
||||
let publiPromise = Cite.async(dat.doi.string)
|
||||
const LatexInline=['\\(','\\)']
|
||||
var par=document.getElementById("data_par")
|
||||
par.innerHTML='';
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
var lnkdoi = document.createElement("a");
|
||||
// Wait for the value of publi when required
|
||||
let publi=await publitask;
|
||||
let publi=await publiPromise;
|
||||
let output = publi.format('bibliography', {
|
||||
format: 'html',
|
||||
template: 'apa',
|
||||
|
Loading…
Reference in New Issue
Block a user