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:
parent
29405b71e0
commit
e7a92622e9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user