mirror of
https://github.com/wassname/template.git
synced 2026-08-05 13:30:23 +08:00
Add support for external bibtex files
This commit is contained in:
@@ -42,11 +42,5 @@ export default function render(dom) {
|
||||
polyfillScriptTag.id = 'polyfills';
|
||||
|
||||
// insert at appropriate position--before any other script tag
|
||||
const head = dom.querySelector('head');
|
||||
const firstScriptTag = dom.querySelector('script');
|
||||
if (firstScriptTag) {
|
||||
head.insertBefore(polyfillScriptTag, firstScriptTag);
|
||||
} else {
|
||||
head.appendChild(polyfillScriptTag);
|
||||
}
|
||||
dom.head.insertBefore(polyfillScriptTag, dom.head.firstChild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user