Skip to content

Commit

Permalink
reduce size & improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Sep 29, 2024
1 parent ea0c107 commit d358fe4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
3 changes: 2 additions & 1 deletion assets/ts/definitions/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const GetOriginalJson = () : JsonProfiler => {
export const RestoreOriginalJson = () => {
if (originalJson) {
json = originalJson;
originalJson = null;
}
}

Expand Down Expand Up @@ -119,7 +120,7 @@ export const GetAction = () : ActionTypes => {
* Set the current action
*/
export const SetAction = (status: ActionTypes) => {
action === 'opened' ? SaveItem('data-waterfall-status', 'opened') : DeleteItem('data-waterfall-status');
status === 'opened' ? SaveItem('data-waterfall-status', 'opened') : DeleteItem('data-waterfall-status');
SetWrapperAttribute({
'data-status': status === 'minimize' ? 'opened' : status,
style: null
Expand Down
6 changes: 1 addition & 5 deletions assets/ts/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,7 @@ export default (): void => {
SetAttribute(tabElements['benchmark'], {
'data-filter': null,
});
if (lastSeverity !== 'all') {
renderBenchmark('all');
} else {
renderBenchmark('all', lastSearch, true);
}
renderBenchmark(null, lastSearch, true);
return;
}
SetAttribute(headerFilter, {
Expand Down
12 changes: 4 additions & 8 deletions dist/waterfall.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d358fe4

Please sign in to comment.