Skip to content

Commit 91a680e

Browse files
committed
Try something
1 parent e0f3f76 commit 91a680e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_management/priv/www/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
scripts.forEach((script) => {
1919
tag = document.createElement('script');
2020
tag.src = 'js/' + script + '?v=' + management_version;
21-
document.head.appendChild(tag);
21+
document.currentScript.parentNode.insertBefore(tag, document.currentScript.nextSibling);
2222
});
2323

2424
tag = document.createElement('link');
2525
tag.rel = 'stylesheet';
2626
tag.type = 'text/css';
2727
tag.href = 'css/main.css?v=' + management_version;
28-
document.head.appendChild(tag);
28+
document.currentScript.parentNode.insertBefore(tag, document.currentScript.nextSibling);
2929
</script>
3030

3131
<script src="js/oidc-oauth/bootstrap.js" type="module"></script>

0 commit comments

Comments
 (0)