From 2de5a09ba70a00de9e2e59f139f6874293f151d2 Mon Sep 17 00:00:00 2001 From: dewanakl Date: Sun, 26 Jan 2025 13:44:54 +0700 Subject: [PATCH] fix: unused theme --- js/app/component/card.js | 2 -- js/app/component/comment.js | 1 - 2 files changed, 3 deletions(-) diff --git a/js/app/component/card.js b/js/app/component/card.js index 173b449..00ebb1a 100644 --- a/js/app/component/card.js +++ b/js/app/component/card.js @@ -1,5 +1,4 @@ import { util } from '../../common/util.js'; -import { theme } from '../../common/theme.js'; import { storage } from '../../common/storage.js'; import { session } from '../../common/session.js'; @@ -125,7 +124,6 @@ export const card = (() => { }; const renderBody = (comment, is_parent) => { - const text = theme.isDarkMode('light', 'dark'); const original = convertMarkdownToHTML(util.escapeHtml(comment.comment)); const moreThanMaxLength = original.length > maxCommentLength; diff --git a/js/app/component/comment.js b/js/app/component/comment.js index 00946c3..2a94da9 100644 --- a/js/app/component/comment.js +++ b/js/app/component/comment.js @@ -3,7 +3,6 @@ import { like } from './like.js'; import { util } from '../../common/util.js'; import { pagination } from './pagination.js'; import { dto } from '../../connection/dto.js'; -import { theme } from '../../common/theme.js'; import { storage } from '../../common/storage.js'; import { session } from '../../common/session.js'; import { request, HTTP_GET, HTTP_POST, HTTP_DELETE, HTTP_PUT } from '../../connection/request.js';