Skip to content

Commit

Permalink
fix: Fix variable declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
r8 committed Feb 15, 2024
1 parent c03f432 commit 9a85afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/observers/themeWatcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useSetAtom } from "jotai";
import { themeAtom } from "../../store/themeAtom";

const getButtonBackgroundColor = () => {
let elem = parent.document.querySelector("button.ui__button");
let style = parent.window.getComputedStyle(elem);
const elem = parent.document.querySelector("button.ui__button");
const style = parent.window.getComputedStyle(elem);

return style.backgroundColor;
};
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/chess/chessConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ChessConfig {
};

private parseSquares = (line: string, limit: number = null): Square[] => {
let items = line.split(" ").map((item) => item.trim() as Square);
const items = line.split(" ").map((item) => item.trim() as Square);

if (limit) {
return items.slice(0 - limit);
Expand Down

0 comments on commit 9a85afd

Please # to comment.