summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js')
-rw-r--r--static/js/client.js (renamed from static/js/main.js)3
-rw-r--r--static/js/controllers/comments_controller.js (renamed from static/js/comments/comment_form.js)2
2 files changed, 2 insertions, 3 deletions
diff --git a/static/js/main.js b/static/js/client.js
index cfb02dc..d782871 100644
--- a/static/js/main.js
+++ b/static/js/client.js
@@ -1,5 +1,4 @@
-import CommentForm from "./comments/comment_form";
-
+import { CommentsController} from "./comments/comments_controller.js";
const post = window.location.pathname;
const domain = window.location.hostname;
diff --git a/static/js/comments/comment_form.js b/static/js/controllers/comments_controller.js
index 6edde9f..611b2ee 100644
--- a/static/js/comments/comment_form.js
+++ b/static/js/controllers/comments_controller.js
@@ -1,4 +1,4 @@
-class CommentForm {
+export class CommentsController {
constructor(domain, post) {
this.domain = domain;
this.post = post;