diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-08 18:21:12 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-08 18:21:12 -0600 |
commit | e91a86a714686a22149b55c9d5f0210cec8fef52 (patch) | |
tree | ac7212b106dac7a357b3f5a1a834b17f431f07bc /static/js | |
parent | a4dbf1cd8d0769b1ff1e0d99217f92b28b92e0d4 (diff) |
Add CORS
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; |