opening transitions in same window

This commit is contained in:
Seth Forsgren 2022-12-14 14:31:52 -08:00
parent 88f844c71c
commit 5b4486019f
2 changed files with 4 additions and 3 deletions

View File

@ -166,11 +166,11 @@ export function jumpToPrompt(prompt: String, inferenceResults: InferenceResult[]
} }
if (firstTimePromptAppears == -1) { if (firstTimePromptAppears == -1) {
let url = generateLinkToUpcomingPrompt(prompt, nowPlayingResult) let url = generateLinkToUpcomingPrompt(prompt, nowPlayingResult)
window.open(url, "_blank").focus(); window.location.href = url;
} }
else { else {
let url = generateLinkToPreviousInput(inferenceResults[firstTimePromptAppears].input) let url = generateLinkToPreviousInput(inferenceResults[firstTimePromptAppears].input)
window.open(url, "_blank").focus(); window.location.href = url;
} }
} }

View File

@ -17,6 +17,7 @@ export const samplePrompts = [
"post-teen pop talent show winner", "post-teen pop talent show winner",
"sean paul dancehall", "sean paul dancehall",
"mambo but from kenya", "mambo but from kenya",
"jack johnson vocals",
"swing jazz trumpet", "swing jazz trumpet",
"bubblegum eurodance", "bubblegum eurodance",
]; ];
@ -38,7 +39,7 @@ export const rollTheDicePrompts = [
"water drops", "water drops",
"british soul dance", "british soul dance",
"pop r&b urban contemporary", "pop r&b urban contemporary",
"baroque pop new wave", "baroque new wave pop",
"reggae fusion", "reggae fusion",
"tropical german dance house", "tropical german dance house",
// TODO: consider adding samplePrompts to this list when using it // TODO: consider adding samplePrompts to this list when using it