Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Apr 15, 2024
1 parent 0200aef commit e94c1db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions packages/app/src/main/streamerOverlay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ export class StreamerOverlay {
const settings = this.applicationStore.getState().settings;
if (settings.streamOverlay) {
if (this.running && this.currentPort !== settings.streamOverlayPort) {
console.debug(`Stream overlay - change of port - Starting stream overlay server on port ${settings.streamOverlayPort}`)
console.debug(
`Stream overlay - change of port - Starting stream overlay server on port ${settings.streamOverlayPort}`,
);
this.stop();
this.start();
} else if (!this.running) {
console.debug(`Stream overlay not running - Starting stream overlay server on port ${settings.streamOverlayPort}`)
console.debug(
`Stream overlay not running - Starting stream overlay server on port ${settings.streamOverlayPort}`,
);
this.start();
}
if (this.running) {
Expand Down
6 changes: 2 additions & 4 deletions packages/app/src/renderer/windows/settings/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as React from "react";
import { useDispatch, useSelector } from "react-redux";
import { StreamOverlayPositions } from "../../../redux/state";
import { actions, selectSettings } from "../../../redux/slice";
import {useCallback, useEffect, useState} from "react";
import { useCallback, useEffect, useState } from "react";
import { events, firebaseInit } from "../../firebase/firebase";
import { Helper } from "@coh2stats/shared/src/components/helper";
import { Collapse, Divider, Result, Slider, Spin, Steps, Tooltip, Typography } from "antd";
Expand All @@ -21,8 +21,6 @@ import { debounce } from "lodash";

const { Text } = Typography;



// Because about window is completely new render process we need to init firebase again
firebaseInit();

Expand Down Expand Up @@ -127,7 +125,7 @@ const App = (): JSX.Element => {

const debouncedHandleStreamModePortChange = useCallback(
debounce(handleStreamModePortChange, 1000),
[]
[],
);

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/pages/desktop-app/desktop-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ const DesktopApp: React.FC = () => {
</a>
</div>
<p style={{ fontSize: "20px" }}>
An easy to configure overlay for OBS or Twitch Studio that shows the players and their ranking when
in game. Learn more{" "}
An easy to configure overlay for OBS or Twitch Studio that shows the players and
their ranking when in game. Learn more{" "}
<Link
href={
"https://github.com/cohstats/coh2stats/blob/master/packages/app/README.md#stream-overlay"
Expand Down

0 comments on commit e94c1db

Please sign in to comment.