didelity: only wrap JS globals if necessary (via wabac.js 2.9.5)

update to wabac.js 2.9.5
bump to 1.5.5
This commit is contained in:
Ilya Kreymer
2021-10-25 11:04:55 -07:00
parent 10cfe36350
commit 34b03e6b08
8 changed files with 220 additions and 187 deletions
+6 -1
View File
@@ -425,7 +425,12 @@ class CollInfo extends LitElement
</div>` : html`
`}
<div class="column is-4">
<span class="source-text"><p class="minihead">Source</p>${coll.sourceUrl}&nbsp;</span>
<span class="source-text"><p class="minihead">Source</p>
${coll.sourceUrl && (coll.sourceUrl.startsWith("http://") || coll.sourceUrl.startsWith("https://")) ? html`
<a href="${coll.sourceUrl}">${coll.sourceUrl}&nbsp;</a>` : html`
${coll.sourceUrl}&nbsp;`}
</span>
<a @click="${(e) => this.onCopy(e, coll.sourceUrl)}" class="copy"><fa-icon .svg="${fasCopy}"/></a>
${coll.sourceUrl && coll.sourceUrl.startsWith("googledrive://") ? html`
<p><i>(${coll.filename})</i></p>` : ""}