Skip to content

Commit

Permalink
필터 삭제시 엉뚱한 index 가 삭제되는 현상 수정 + 스토어에 설명란이 중복되는 현상 수정을 위한 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
erados committed Dec 17, 2024
1 parent 4743e90 commit ad91aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ document.addEventListener('DOMContentLoaded', async () => {
if (e.target.classList.contains('delete-btn')) {
const index = parseInt(e.target.dataset.index);
const { filters = [] } = await chrome.storage.local.get('filters');

filters.sort((a, b) => b.timestamp - a.timestamp);
filters.splice(index, 1);
await chrome.storage.local.set({ filters });
await loadFilters();
Expand Down
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"manifest_version": 3,
"name": "SafeSpace",
"version": "1.1.0",
"description": "유해한 콘텐츠를 차단하여 안전한 온라인 환경을 제공하는 확장 프로그램입니다.",
"version": "1.1.2",
"permissions": [
"storage",
"activeTab",
Expand Down

0 comments on commit ad91aa7

Please sign in to comment.