chore(react/settings): reimplement reset shortcuts

This commit is contained in:
Elian Doran
2025-08-18 19:47:40 +03:00
parent 227cf5de85
commit b97a5ef888
4 changed files with 36 additions and 6 deletions

View File

@@ -750,6 +750,23 @@ export function toggleBodyClass(prefix: string, value: string) {
$body.addClass(prefix + value);
}
export function arrayEqual<T>(a: T[], b: T[]) {
if (a === b) {
return true;
}
if (a.length !== b.length) {
return false;
}
for (let i=0; i < a.length; i++) {
if (a[i] !== b[i]) {
return false;
}
}
return true;
}
export default {
reloadFrontendApp,
restartDesktopApp,