Skip to content

Commit

Permalink
Emit telemetry when theme is changed (#9916)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm committed Jun 21, 2024
1 parent 3f6c7cf commit 1b54df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NuGetGallery/Scripts/gallery/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@
document.documentElement.setAttribute('data-theme', themeSelector.value);
document.getElementById("user-prefered-theme").textContent = themeSelector.value == "light" ? "Light" : "Dark";
}
window.nuget.sendMetric("ThemeChanged", 1, { "ThemeChanged": themeSelector.value });
})

// Set the theme selector to the user's preferred theme
Expand Down

0 comments on commit 1b54df9

Please sign in to comment.