Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Aug 5, 2024
1 parent f458fd4 commit 30cacd6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/steamfixes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import restartFix from './restart';
import cefSocketFix from "./socket";
import cefSocketFix from './socket';

let fixes: Function[] = [];

Expand Down
18 changes: 9 additions & 9 deletions frontend/src/steamfixes/socket.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Logger from "../logger";
import Logger from '../logger';

const logger = new Logger('CEFSocketFix');

const closeCEFSocket = DeckyBackend.callable<[], void>("utilities/close_cef_socket");
const closeCEFSocket = DeckyBackend.callable<[], void>('utilities/close_cef_socket');

export default function cefSocketFix() {
const reg = window.SteamClient?.User?.RegisterForShutdownStart(async () => {
logger.log("Closing CEF socket before shutdown");
await closeCEFSocket();
});
const reg = window.SteamClient?.User?.RegisterForShutdownStart(async () => {
logger.log('Closing CEF socket before shutdown');
await closeCEFSocket();
});

if (reg) logger.debug("CEF shutdown handler ready");
if (reg) logger.debug('CEF shutdown handler ready');

return () => reg?.unregister();
}
return () => reg?.unregister();
}

0 comments on commit 30cacd6

Please sign in to comment.