radames commited on
Commit
8319790
β€’
1 Parent(s): 9d92e44
Files changed (1) hide show
  1. frontend/src/routes/+page.svelte +1 -3
frontend/src/routes/+page.svelte CHANGED
@@ -175,9 +175,7 @@
175
  function remix(e: CustomEvent) {
176
  prompt = e.detail.prompt;
177
  promptInputEl.scrollIntoView({ behavior: 'smooth' });
178
- if ('parentIFrame' in window) {
179
- window.parentIFrame.scrollTo(0, promptInputEl.offsetTop);
180
- }
181
  }
182
  function scrollTop() {
183
  window.scrollTo(0, 0);
 
175
  function remix(e: CustomEvent) {
176
  prompt = e.detail.prompt;
177
  promptInputEl.scrollIntoView({ behavior: 'smooth' });
178
+ scrollTop();
 
 
179
  }
180
  function scrollTop() {
181
  window.scrollTo(0, 0);