1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-21 18:02:32 +01:00

fix a ts error

This commit is contained in:
Puyodead1 2024-10-09 10:42:49 -04:00
parent 29405b71e0
commit e7a92622e9
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -84,7 +84,9 @@ export const getFileDetails = (fileOrAttachment: File | APIAttachment) => {
export const isTauri = !!window.__TAURI_INTERNALS__; export const isTauri = !!window.__TAURI_INTERNALS__;
export function rgbToHsl(r: number, g: number, b: number) { export function rgbToHsl(r: number, g: number, b: number) {
(r /= 255), (g /= 255), (b /= 255); r /= 255;
g /= 255;
b /= 255;
const max = Math.max(r, g, b), const max = Math.max(r, g, b),
min = Math.min(r, g, b); min = Math.min(r, g, b);