Browse Source

Only load when in electron

Manav Rathi 1 year ago
parent
commit
57d09c08d4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      web/apps/photos/src/components/Sidebar/UtilitySection.tsx

+ 6 - 1
web/apps/photos/src/components/Sidebar/UtilitySection.tsx

@@ -206,7 +206,12 @@ export default function UtilitySection({ closeSidebar }) {
                 closeSidebar={closeSidebar}
                 setLoading={startLoading}
             />
-            <WatchFolder open={watchFolderView} onClose={closeWatchFolder} />
+            {isElectron() && (
+                <WatchFolder
+                    open={watchFolderView}
+                    onClose={closeWatchFolder}
+                />
+            )}
             <Preferences
                 open={preferencesView}
                 onClose={closePreferencesOptions}