Skip to content

Commit

Permalink
fix: quick changes (#5)
Browse files Browse the repository at this point in the history
* fix(regex): rely on .exec

* fix(css): remove duplicated rule
  • Loading branch information
louisgrasset authored Nov 8, 2023
1 parent aba0ba8 commit 262185b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/helpers/get-navigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Navigator } from "../types/Navigator";
export const getNavigator = (): Navigator | undefined => {
const userAgent = navigator.userAgent;

if (userAgent.match(/chrome|chromium|crios/i)) {
if (/chrome|chromium|crios/i.exec(userAgent)) {
return Navigator.CHROMIUM;
} else if (userAgent.match(/firefox|fxios/i)) {
} else if (/firefox|fxios/i.exec(userAgent)) {
return Navigator.FIREFOX;
}
return undefined;
Expand Down
3 changes: 0 additions & 3 deletions src/styles/foundations/_browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ button {
line-height: 0;
transition: transform .15s ease-out, border-color 0.25s;

&:hover {
transform: scale(1.05);
}
&:hover {
background-color: darken($brand, 1);
transform: scale(1.01);
Expand Down

0 comments on commit 262185b

Please sign in to comment.