refactor(client): use common method for checking if launch bar config

This commit is contained in:
Elian Doran
2025-01-04 21:52:41 +02:00
parent cfeb4eb51f
commit c2315a9341
5 changed files with 16 additions and 5 deletions

View File

@@ -590,6 +590,13 @@ function isUpdateAvailable(latestVersion: string, currentVersion: string): boole
return compareVersions(latestVersion, currentVersion) > 0;
}
function isLaunchBarConfig(noteId: string) {
return [
"_lbRoot", "_lbAvailableLaunchers", "_lbVisibleLaunchers",
"_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers"
].includes(noteId);
}
export default {
reloadFrontendApp,
parseDate,
@@ -632,5 +639,6 @@ export default {
createImageSrcUrl,
downloadSvg,
compareVersions,
isUpdateAvailable
isUpdateAvailable,
isLaunchBarConfig
};