Ensure that all "alt_text_*" save-telemetry values are boolean (PR 16987 follow-up)

Looking at the save-telemetry values they're all boolean *except* for "alt_text_edit" in one instance, since `this.#previousAltText` may be an empty string (looking at the `editAltText` method) and this value may thus become an empty string as well.
This commit is contained in:
Jonas Jenwald 2023-09-21 08:29:51 +02:00
parent 34506f8874
commit 5660cdfe68

View File

@ -230,7 +230,7 @@ class AltTextManager {
action: "alt_text_save",
alt_text_description: !!altText,
alt_text_edit:
this.#previousAltText && this.#previousAltText !== altText,
!!this.#previousAltText && this.#previousAltText !== altText,
alt_text_decorative: decorative,
alt_text_keyboard: !this.#hasUsedPointer,
},