Skip to content

Commit 314de6b

Browse files
authored
Merge pull request #31 from nicosh/chore/perf
chore: perf
2 parents 637a877 + e81babc commit 314de6b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/App.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
.App {
1+
body{
2+
transition: background-color .5s ease,color .5s ease;
3+
4+
}
5+
App {
26
text-align: center;
37
height: 100vh;
48
}
@@ -138,8 +142,7 @@
138142
border: 1px solid rgba(255, 255, 255, 0.125);
139143
color: white;
140144
box-sizing: border-box;
141-
max-width: 170px !important;
142-
min-width: 170px !important;
145+
143146
}
144147

145148
@media (max-width: 1400px) {

src/components/lighthouseWrapper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ const LightHouse = () => {
2121
}
2222
apiUrl.searchParams.append('utm_source', 'lh-chrome-ext');
2323
setReportUrl(apiUrl.href);
24-
//window.open(apiUrl.href);
2524
} else {
2625
message.error('Invalid url');
2726
}
2827
};
2928

3029
const isValidURL = (str) => {
31-
var pattern = new RegExp(
30+
const pattern = new RegExp(
3231
'^(https?:\\/\\/)?' + // protocol
3332
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
3433
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ ReactDOM.render(
1111
document.getElementById('root')
1212
);
1313

14-
// If you want to start measuring performance in your app, pass a function
15-
// to log results (for example: reportWebVitals(console.log))
16-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
1714
reportWebVitals();

0 commit comments

Comments
 (0)