1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #19565 from calixteman/signature_fix_telemetry

[Editor] Fix the telemetry for the signature stuff
This commit is contained in:
calixteman 2025-02-27 10:10:13 +01:00 committed by GitHub
commit a4fea2dafd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,6 +177,7 @@ class SignatureManager {
"click",
() => {
this.#reportTelemetry({
type: "signature",
action: "pdfjs.signature.clear",
data: {
type: this.#currentTab,
@ -738,6 +739,7 @@ class SignatureManager {
if (await this.#signatureStorage.delete(uuid)) {
div.remove();
this.#reportTelemetry({
type: "signature",
action: "pdfjs.signature.delete_saved",
data: {
savedCount: await this.#signatureStorage.size(),
@ -924,6 +926,7 @@ class SignatureManager {
const altText = this.#tabsToAltText.get(type);
this.#reportTelemetry({
type: "signature",
action: "pdfjs.signature.created",
data: {
type,