summaryrefslogtreecommitdiffstats
path: root/browser/components/ion/content
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /browser/components/ion/content
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/ion/content')
-rw-r--r--browser/components/ion/content/ion.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/browser/components/ion/content/ion.js b/browser/components/ion/content/ion.js
index 3c34328d58..ef3217d239 100644
--- a/browser/components/ion/content/ion.js
+++ b/browser/components/ion/content/ion.js
@@ -444,7 +444,7 @@ async function setup(cachedAddons) {
document
.getElementById("join-ion-accept-dialog-button")
- .addEventListener("click", async event => {
+ .addEventListener("click", async () => {
const ionId = Services.prefs.getStringPref(PREF_ION_ID, null);
if (!ionId) {
@@ -501,7 +501,7 @@ async function setup(cachedAddons) {
document
.getElementById("leave-ion-accept-dialog-button")
- .addEventListener("click", async event => {
+ .addEventListener("click", async () => {
const completedStudies = Services.prefs.getStringPref(
PREF_ION_COMPLETED_STUDIES,
"{}"
@@ -567,7 +567,7 @@ async function setup(cachedAddons) {
document
.getElementById("join-study-accept-dialog-button")
- .addEventListener("click", async event => {
+ .addEventListener("click", async () => {
const dialog = document.getElementById("join-study-consent-dialog");
const studyAddonId = dialog.getAttribute("addon-id");
toggleEnrolled(studyAddonId, cachedAddons).then(dialog.close());
@@ -575,7 +575,7 @@ async function setup(cachedAddons) {
document
.getElementById("leave-study-accept-dialog-button")
- .addEventListener("click", async event => {
+ .addEventListener("click", async () => {
const dialog = document.getElementById("leave-study-consent-dialog");
const studyAddonId = dialog.getAttribute("addon-id");
await toggleEnrolled(studyAddonId, cachedAddons).then(dialog.close());
@@ -597,7 +597,7 @@ async function setup(cachedAddons) {
};
AddonManager.addAddonListener(addonsListener);
- window.addEventListener("unload", event => {
+ window.addEventListener("unload", () => {
AddonManager.removeAddonListener(addonsListener);
});
}
@@ -639,7 +639,7 @@ function updateContents(contents) {
}
}
-document.addEventListener("DOMContentLoaded", async domEvent => {
+document.addEventListener("DOMContentLoaded", async () => {
toggleContentBasedOnLocale();
showEnrollmentStatus();