10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Rename publitask to publiPromise to respect the name used in JavaScript

This commit is contained in:
Mickaël Véril 2019-09-09 09:15:55 +02:00
parent f836086f07
commit e476f04011

View File

@ -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',