Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 53349d9

Browse files
authored
Fix Double Prompt for EASE Mode (#20163)
* Update translations. * Remove double prompt for EASE mode - alert after button click removed * Fix spacing
1 parent 88adc10 commit 53349d9

File tree

1 file changed

+6
-10
lines changed
  • chromium/pages/cancel

1 file changed

+6
-10
lines changed

chromium/pages/cancel/ux.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ function displayURL() {
5252
originURLLink.href = originURL;
5353

5454
openURLButton.addEventListener("click", function() {
55-
if (confirm(chrome.i18n.getMessage("cancel_open_page") + '?')) {
56-
sendMessage("disable_on_site", url.host, () => {
57-
window.location = originURL;
58-
});
59-
}
55+
sendMessage("disable_on_site", url.host, () => {
56+
window.location = originURL;
57+
});
6058

6159
return false;
6260
});
@@ -117,11 +115,9 @@ function displayURL() {
117115
});
118116

119117
openHttpOnce.addEventListener("click", function() {
120-
if (confirm(chrome.i18n.getMessage("cancel_http_once") + '?')) {
121-
sendMessage("disable_on_site_once", url.host, () => {
122-
window.location = originURL;
123-
});
124-
}
118+
sendMessage("disable_on_site_once", url.host, () => {
119+
window.location = originURL;
120+
});
125121

126122
return false;
127123
});

0 commit comments

Comments
 (0)