mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Apply profile changes from URI before start
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import { querystring } from 'svelte-spa-router'
|
import { querystring } from 'svelte-spa-router'
|
||||||
import { addChat, setChatSettingValueByKey } from './Storage.svelte'
|
import { addChat, setChatSettingValueByKey } from './Storage.svelte'
|
||||||
import { replace } from 'svelte-spa-router'
|
import { replace } from 'svelte-spa-router'
|
||||||
import { getProfile } from './Profiles.svelte'
|
import { getProfile, restartProfile } from './Profiles.svelte'
|
||||||
import { getChatDefaults } from './Settings.svelte'
|
import { getChatDefaults } from './Settings.svelte'
|
||||||
|
|
||||||
// Create the new chat instance then redirect to it
|
// Create the new chat instance then redirect to it
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
setChatSettingValueByKey(chatId, k as any, urlParams.get(k))
|
setChatSettingValueByKey(chatId, k as any, urlParams.get(k))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
restartProfile(chatId)
|
||||||
replace(`/chat/${chatId}`)
|
replace(`/chat/${chatId}`)
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user