[tor-commits] [https-everywhere] 21/51: Fix Double Prompt for EASE Mode (#20163)
gitolite role
git at cupani.torproject.org
Thu May 26 18:54:43 UTC 2022
This is an automated email from the git hooks/post-receive script.
alexishan pushed a commit to annotated tag 2022.5.24
in repository https-everywhere.
commit 53349d90ba09b37fe814dd931836dc6af0b6d42a
Author: Alexis <alexis at eff.org>
AuthorDate: Thu Dec 16 15:12:05 2021 -0800
Fix Double Prompt for EASE Mode (#20163)
* Update translations.
* Remove double prompt for EASE mode
- alert after button click removed
* Fix spacing
---
chromium/pages/cancel/ux.js | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/chromium/pages/cancel/ux.js b/chromium/pages/cancel/ux.js
index 259d6020f3..d13dfdfb71 100644
--- a/chromium/pages/cancel/ux.js
+++ b/chromium/pages/cancel/ux.js
@@ -52,11 +52,9 @@ function displayURL() {
originURLLink.href = originURL;
openURLButton.addEventListener("click", function() {
- if (confirm(chrome.i18n.getMessage("cancel_open_page") + '?')) {
- sendMessage("disable_on_site", url.host, () => {
- window.location = originURL;
- });
- }
+ sendMessage("disable_on_site", url.host, () => {
+ window.location = originURL;
+ });
return false;
});
@@ -117,11 +115,9 @@ function displayURL() {
});
openHttpOnce.addEventListener("click", function() {
- if (confirm(chrome.i18n.getMessage("cancel_http_once") + '?')) {
- sendMessage("disable_on_site_once", url.host, () => {
- window.location = originURL;
- });
- }
+ sendMessage("disable_on_site_once", url.host, () => {
+ window.location = originURL;
+ });
return false;
});
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list