Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Spaces > tabs :)
  • Loading branch information
NickCraver committed Aug 2, 2023
1 parent c9b8ff4 commit 3180a07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 5 additions & 6 deletions src/MiniProfiler.Shared/ui/includes.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}

.mp-scheme-light {
color-scheme: light;
color-scheme: light;
}

.mp-scheme-dark {
Expand All @@ -72,7 +72,6 @@
--mp-highlight-keyword-color: #36a1ef;
/* Borders */
--mp-result-border: solid 0.5px #575757;

color-scheme: dark;

body {
Expand Down Expand Up @@ -153,10 +152,10 @@

table.mp-client-timings {
margin-top: 10px;
th:first-child {
text-align: left;
}

th:first-child {
text-align: left;
}

td:nth-child(2) {
width: 100%;
Expand Down
10 changes: 5 additions & 5 deletions src/MiniProfiler.Shared/ui/lib/MiniProfiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ namespace StackExchange.Profiling {

// fetch and render results
mp.fetchResults(mp.options.ids);

let lsDisplayValue;
try {
lsDisplayValue = window.localStorage.getItem('MiniProfiler-Display');
} catch(e) { }
} catch (e) { }

if (lsDisplayValue) {
mp.container.style.display = lsDisplayValue;
Expand Down Expand Up @@ -957,7 +957,7 @@ namespace StackExchange.Profiling {
}

const profilerHtml = this.renderProfiler(json, true);
this.setStylesAndDisplay(profilerHtml);
this.setStylesAndDisplay(profilerHtml);

// limit count to maxTracesToShow, remove those before it
const results = this.container.querySelectorAll('.mp-result');
Expand All @@ -966,7 +966,7 @@ namespace StackExchange.Profiling {
results[i].parentNode.removeChild(results[i]);
}
}

private setStylesAndDisplay(profilerHtml: string) {
const nonVisibleElement = document.createElement("div");
nonVisibleElement.innerHTML = profilerHtml;
Expand Down Expand Up @@ -1238,7 +1238,7 @@ namespace StackExchange.Profiling {
results.style.display = newValue;
try {
window.localStorage.setItem('MiniProfiler-Display', newValue);
} catch(e) { }
} catch (e) { }
}
}, false);
}
Expand Down

0 comments on commit 3180a07

Please sign in to comment.