Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c73a795

Browse files
committed
rm removed show ratings button functionality
1 parent e82c66a commit c73a795

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

‎src/popup/popup.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ const selectors: { [key: string]: string } = {
2424
analyzeCodeResponse: 'analyze-code-response',
2525
fixCodeResponse: 'fix-code-response',
2626
fixCodeContainer: 'fix-code-container',
27-
codeBtnContainer: 'code-btn-container',
2827
copyCodeBtn: 'copy-code-btn',
2928
clearCodeBtn: 'clear-code-btn',
3029
openSettingsBtn: 'open-settings-btn',
31-
3230
};
3331

3432
/* Chrome storage keys */

‎src/popup/settings.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ document.addEventListener('DOMContentLoaded', () => {
9494
});
9595
});
9696

97-
const showRatingBtn = document.getElementById('show-rating-btn');
98-
showRatingBtn && showRatingBtn.addEventListener('click', function() {
99-
chrome.storage.local.get(['showRating'], (result) => {
100-
const showRating = !result.showRating;
101-
chrome.storage.local.set({ showRating: showRating }, () => {
102-
const showRatingIcon = document.getElementById('show-rating-icon');
103-
if (showRatingIcon) showRatingIcon.textContent = showRating ? '✅' : '❌';
104-
safelySendMessage({ action: 'updateDescription', title: document.title || 'title' });
105-
});
106-
});
107-
});
108-
10997
// Font size handler (simplified for this fix)
11098
fontSizeSelect && fontSizeSelect.addEventListener('change', function() {
11199
const fontSize = this.value;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /