Skip to content

Commit

Permalink
chore: prettier 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Aug 28, 2024
1 parent 16ec24f commit 5ab6d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion frontend/src/controller/canvasController.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class CanvasController {
dx,
dy,
this.images[imageIndex],
bubble.text,
bubble.text
);

this.bubbles.push(newBubble);
Expand Down
17 changes: 3 additions & 14 deletions frontend/src/controller/menuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,13 @@ export default class MenuController {

this.socket.on("getBubbles", (bubbles) => {
bubbles.map((bubble) => {
const li = new MenuText(
bubble.id,
bubble.text,
bubble.created_at
).render();
const li = new MenuText(bubble.id, bubble.text, bubble.created_at).render();
this.menuOl.appendChild(li);
});
});

this.socket.on("add", (bubble) => {
const li = new MenuText(
bubble.id,
bubble.text,
bubble.created_at
).render();
const li = new MenuText(bubble.id, bubble.text, bubble.created_at).render();
this.menuOl.appendChild(li);
});

Expand All @@ -59,10 +51,7 @@ export default class MenuController {

document.addEventListener("click", (event) => {
// 클릭한 요소가 menuContent 또는 menuImg가 아니면 메뉴 닫기
if (
!this.menuContent.contains(event.target) &&
!menuImg.contains(event.target)
) {
if (!this.menuContent.contains(event.target) && !menuImg.contains(event.target)) {
this.menuContent.classList.remove("show_menu");
const menuImgPath = $("#menu_svg_path");
menuImgPath.classList.remove("change_menu_svg_color");
Expand Down

0 comments on commit 5ab6d2e

Please sign in to comment.