refactor: ran prettier

This commit is contained in:
lilezek 2024-05-04 19:27:58 +02:00
parent 8caea2893d
commit 2bcc40278c
5 changed files with 5 additions and 8 deletions

View File

@ -33,7 +33,6 @@ export const months = [
"Dec", "Dec",
]; ];
export const defaultDownloadsPath = app.getPath("downloads"); export const defaultDownloadsPath = app.getPath("downloads");
export const databasePath = path.join( export const databasePath = path.join(

View File

@ -15,7 +15,6 @@ import crypto from "node:crypto";
import fs from "node:fs"; import fs from "node:fs";
import { app } from "electron"; import { app } from "electron";
interface DownloadStatus { interface DownloadStatus {
numPeers: number; numPeers: number;
numSeeds: number; numSeeds: number;

View File

@ -7,9 +7,7 @@ const wasmPath = app.isPackaged
? path.join(process.resourcesPath, "unrar.wasm") ? path.join(process.resourcesPath, "unrar.wasm")
: path.join(__dirname, "..", "..", "unrar.wasm"); : path.join(__dirname, "..", "..", "unrar.wasm");
const wasmBinary = fs.readFileSync( const wasmBinary = fs.readFileSync(require.resolve(wasmPath));
require.resolve(wasmPath)
);
export class Unrar { export class Unrar {
private constructor(private extractor: Extractor<Uint8Array>) {} private constructor(private extractor: Extractor<Uint8Array>) {}

View File

@ -131,7 +131,8 @@ export function Settings() {
value={form.realDebridApiToken ?? ""} value={form.realDebridApiToken ?? ""}
onChange={(event) => { onChange={(event) => {
updateUserPreferences("realDebridApiToken", event.target.value); updateUserPreferences("realDebridApiToken", event.target.value);
}} /> }}
/>
</div> </div>
</section> </section>
); );