Skip to content

Commit 993f7e0

Browse files
committed
fix: improved content & design of consent dialog
1 parent c1b3521 commit 993f7e0

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

src/eventPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function startPopupListener() {
182182
chrome.storage.local.get("askConsent", (obj) => {
183183
if(obj.askConsent) {
184184
const url = chrome.runtime.getURL("../static/consent.html");
185-
chrome.windows.create({ url, type: "popup", height: 420, width: 416, });
185+
chrome.windows.create({ url, type: "popup", height: 550, width: 416, });
186186
freshInstall = false;
187187
}
188188
})

static/consent.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,35 @@
1010
</head>
1111

1212
<body class="consent">
13-
<img src="/media/banners/banner.png" style="width: 100%">
13+
<img src="/media/banners/banner.png" style="width: 100%" />
1414

15-
<hr>
15+
<h1 style="text-align: center; margin-bottom: 0">Privacy Notice</h1>
16+
<h3 style="text-align: center; margin-top: 0">and your consent</h3>
17+
18+
<!-- This box border helps highlight that there is more text if the box is cut off by a small window -->
19+
<div style="text-overflow: scroll; border: 2px solid #DDD; border-radius: 2px; margin: 0.5em; padding: 0 0.5em 0 0.5em;">
20+
<p>
21+
This extension collects information about the active tab, such as its title, URL, wether it is audible, or incognito/private.
22+
</p>
23+
24+
<p>
25+
It stores that information in your locally installed ActivityWatch instance, which is required for the functioning of this extension.
26+
It is never sent elsewhere than to the local device.
27+
</p>
28+
29+
<p>
30+
Due to Mozilla policy, we need to ask for your consent before we can start collecting this information, even if only kept locally.
31+
</p>
32+
33+
<p>
34+
Since this is the core functionality of this extension, if you do not consent, your only course of action is to uninstall.
35+
</p>
36+
</div>
1637

17-
<h1>Privacy Notice</h1>
18-
<p>
19-
This extension by nature collects personal identifiable information in the form of URLs. All collected information never leaves your device because all data is only forwarded to localhost. Since this is the core functionality of this extension, the only option to not consent, is to uninstall.
20-
</p>
2138
<div class="action-container">
22-
<div class="action"><button class="button" id="consent-refused">Remove ActivityWatch</button></div>
39+
<div class="action"><button class="button" id="consent-refused">Remove ActivityWatch extension</button></div>
2340
<div class="action"><button class="button accept" id="consent-given">Consent to offline data collection</button></div>
2441
</div>
25-
2642
</body>
2743

2844
</html>

static/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function domListeners() {
5151
let consent_button = document.getElementById('status-consent-btn');
5252
consent_button.addEventListener('click', () => {
5353
const url = chrome.runtime.getURL("../static/consent.html");
54-
chrome.windows.create({ url, type: "popup", height: 420, width: 416, });
54+
chrome.windows.create({ url, type: "popup", height: 550, width: 416, });
5555
});
5656
}
5757

0 commit comments

Comments
 (0)