summaryrefslogtreecommitdiff
path: root/assets/js/fc.js
diff options
context:
space:
mode:
authoruvok cheetah2025-09-01 20:27:47 +0200
committeruvok cheetah2025-09-01 20:27:47 +0200
commit248d0ae8f047fb4829edb71c0b58a2c6a55da8f5 (patch)
treef6377e10ba52435bc2d40f318a0f88a34b4e949b /assets/js/fc.js
parent506095dc692b49048268b8098dcdbf43f9572cc2 (diff)
remove inline scripts
Diffstat (limited to 'assets/js/fc.js')
-rw-r--r--assets/js/fc.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/assets/js/fc.js b/assets/js/fc.js
new file mode 100644
index 0000000..ae60b50
--- /dev/null
+++ b/assets/js/fc.js
@@ -0,0 +1,8 @@
+---
+---
+ import Comments from '{{ "/assets/mscomm/comments.js" | relative_url }}'
+ export function loadComments() {
+ document.getElementById('load-comments-btn').remove();
+ customElements.define('oom-comments', Comments);
+ }
+ window.loadComments = loadComments;