Skip to content

Commit

Permalink
Fix #652 - respect PopupDecimalPlaces in all cases (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCraver authored Aug 3, 2023
1 parent 921601f commit 5c80392
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This page tracks major changes included in any update starting with version 4.0.
- Support for strict CSP (dynamic inline styles removed) ([#634](https://github.com/MiniProfiler/dotnet/pull/634) - thanks [rwasef1830](https://github.com/rwasef1830))
- **Fixes/Changes**:
- Upgraded MongoDB driver, allowing automatic index creation and profiler expiration ([#613](https://github.com/MiniProfiler/dotnet/pull/613) - thanks [IanKemp](https://github.com/IanKemp))
- Fixed [#652](https://github.com/MiniProfiler/dotnet/issues/652): Respect `PopupDecimalPlaces` in all cases ([#655](https://github.com/MiniProfiler/dotnet/pull/655))

#### Version 4.3.8
- **New**:
Expand Down
4 changes: 4 additions & 0 deletions src/MiniProfiler.Shared/Internal/Render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ public static string Includes(
sb.Append(options.ColorScheme.ToString());
sb.Append('"');

sb.Append("\" data-decimal-places=\"");
sb.Append(options.PopupDecimalPlaces.ToString());
sb.Append('"');

if (isAuthorized)
{
sb.Append(" data-authorized=\"true\"");
Expand Down

0 comments on commit 5c80392

Please sign in to comment.