mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
Merge pull request #771 from thecodacus/app-fail-safari-fix
fix: Application fails to load on Safari
This commit is contained in:
commit
8aee6ebf47
@ -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);
|
||||||
|
@ -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) => {
|
||||||
|
BIN
public/apple-touch-icon-precomposed.png
Normal file
BIN
public/apple-touch-icon-precomposed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
public/apple-touch-icon.png
Normal file
BIN
public/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
Loading…
Reference in New Issue
Block a user