refactor: disable automatic updates for cloud version

This commit is contained in:
UndefinedPony 2024-12-20 18:57:28 +01:00
parent 4565b3d7a2
commit ab9aa56c48

View File

@ -41,6 +41,10 @@ export const Navbar = () => {
useEffect(() => { useEffect(() => {
// Handling of automatic check for server updates // Handling of automatic check for server updates
if (isCloud) {
return;
}
if (!localStorage.getItem("enableAutoCheckUpdates")) { if (!localStorage.getItem("enableAutoCheckUpdates")) {
// Enable auto update checking by default if user didn't change it // Enable auto update checking by default if user didn't change it
localStorage.setItem("enableAutoCheckUpdates", "true"); localStorage.setItem("enableAutoCheckUpdates", "true");