From 5b4486019f3547f135addce0f74605c6ad25d4d9 Mon Sep 17 00:00:00 2001 From: Seth Forsgren Date: Wed, 14 Dec 2022 14:31:52 -0800 Subject: [PATCH] opening transitions in same window --- components/PromptEntry.tsx | 4 ++-- prompts.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/PromptEntry.tsx b/components/PromptEntry.tsx index 5b8e790..136a5f0 100644 --- a/components/PromptEntry.tsx +++ b/components/PromptEntry.tsx @@ -166,11 +166,11 @@ export function jumpToPrompt(prompt: String, inferenceResults: InferenceResult[] } if (firstTimePromptAppears == -1) { let url = generateLinkToUpcomingPrompt(prompt, nowPlayingResult) - window.open(url, "_blank").focus(); + window.location.href = url; } else { let url = generateLinkToPreviousInput(inferenceResults[firstTimePromptAppears].input) - window.open(url, "_blank").focus(); + window.location.href = url; } } diff --git a/prompts.ts b/prompts.ts index f1d8b1e..c95c2db 100644 --- a/prompts.ts +++ b/prompts.ts @@ -17,6 +17,7 @@ export const samplePrompts = [ "post-teen pop talent show winner", "sean paul dancehall", "mambo but from kenya", + "jack johnson vocals", "swing jazz trumpet", "bubblegum eurodance", ]; @@ -38,7 +39,7 @@ export const rollTheDicePrompts = [ "water drops", "british soul dance", "pop r&b urban contemporary", - "baroque pop new wave", + "baroque new wave pop", "reggae fusion", "tropical german dance house", // TODO: consider adding samplePrompts to this list when using it