From e476f04011feaa12c502a1372fa3cd7bb52d76bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 9 Sep 2019 09:15:55 +0200 Subject: [PATCH] Rename publitask to publiPromise to respect the name used in JavaScript --- content/pages/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/pages/index.html b/content/pages/index.html index 48dd31c4..f1bb9f59 100644 --- a/content/pages/index.html +++ b/content/pages/index.html @@ -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',