Merge pull request #771 from thecodacus/app-fail-safari-fix

fix: Application  fails to load on Safari
This commit is contained in:
Anirban Kar 2024-12-16 21:31:52 +05:30 committed by GitHub
commit 8aee6ebf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
{ "commit": "995fb81ac7a03eb1a6d1c56cf2fc92a60028c024" , "version": "" }
{ "commit": "995fb81ac7a03eb1a6d1c56cf2fc92a60028c024" , "version": "" }

View File

@ -3,8 +3,8 @@ import { Switch } from '~/components/ui/Switch';
import { useSettings } from '~/lib/hooks/useSettings';
export default function FeaturesTab() {
const { debug, enableDebugMode, isLocalModel, enableLocalModels, enableEventLogs, latestBranch, enableLatestBranch } = useSettings();
const { debug, enableDebugMode, isLocalModel, enableLocalModels, enableEventLogs, latestBranch, enableLatestBranch } =
useSettings();
const handleToggle = (enabled: boolean) => {
enableDebugMode(enabled);

View File

@ -99,6 +99,7 @@ export function useSettings() {
if (checkCommit === undefined) {
checkCommit = commit.commit;
}
if (savedLatestBranch === undefined || checkCommit !== commit.commit) {
// If setting hasn't been set by user, check version
checkIsStableVersion().then((isStable) => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB