Skip to content

Commit 306ed04

Browse files
committed
1.2.6: Hide manage subscription button for non-recurring users
1 parent 466bfd6 commit 306ed04

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build/
77
.vscode
88
dist/
99
webpack.config.js
10+
zip.py
1011

1112
# for public repo
1213
detected.png

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "DocDecoder - Summarize Web Policies With AI",
44
"description": "DocDecoder uses GPT-4 to generate clear, concise summaries of any site's legal policies for you to skim over before you accept them.",
5-
"version": "1.2.5",
5+
"version": "1.2.6",
66
"action": {
77
"default_popup": "popup.html",
88
"default_icon": {

popup.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,13 @@ function updatePremiumFeaturesVisibility() {
551551
document.getElementById('notifs-container').removeAttribute('title');
552552

553553
document.getElementById('upgrade-btn').style.display = 'none';
554-
document.getElementById('manage-subscription-btn').style.display = 'block';
554+
555+
if (userPlan === 'premium' || userPlan === 'premium-plus') {
556+
document.getElementById('manage-subscription-btn').style.display = 'none';
557+
} else {
558+
document.getElementById('manage-subscription-btn').style.display = 'block';
559+
}
560+
555561
document.getElementById('premium-button').style.display = 'none';
556562
document.getElementById('upgrade-premium-txt').style.display = 'none';
557563
} else {

0 commit comments

Comments
 (0)