mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Merge branch 'main' into chat-like-conversation
This commit is contained in:
@@ -10,6 +10,12 @@
|
|||||||
$: sortedChats = $chatsStorage.sort((a, b) => b.id - a.id);
|
$: sortedChats = $chatsStorage.sort((a, b) => b.id - a.id);
|
||||||
$: apiKey = $apiKeyStorage;
|
$: apiKey = $apiKeyStorage;
|
||||||
|
|
||||||
|
// Check if the API key is passed in as a "key" query parameter - if so, save it
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
if (urlParams.has("key")) {
|
||||||
|
apiKeyStorage.set(urlParams.get("key")!);
|
||||||
|
}
|
||||||
|
|
||||||
let activeChatId: number;
|
let activeChatId: number;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user