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

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

View File

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