Merge pull request #16991 from Snuffleupagus/alt_text_edit-boolean

Ensure that all "alt_text_*" save-telemetry values are boolean (PR 16987 follow-up)
This commit is contained in:
calixteman 2023-09-21 11:04:06 +02:00 committed by GitHub
commit 561aea530b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,
},