You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you're typing out the code in the instructions, once you get to 'text/plain' the browser will start spamming downloads of the contents in the iFrame (i.e. if you have "this is a bug" it will download a file with that text in it).
I couldn't replicate this in Chrome
Replication:
copy and paste this into src/routes/+page.server.js
export function load({setHeaders}) {
// set headers
setHeaders({
'Content-Type': 'text'
})
}
In my browser, the page begins reloading constantly at this point.
If you add a '/' at the end of 'text' it will start downloading constantly.
I've noticed that if I paste the entire solution, or preempt the setHeaders({...}) part with a return after it, the issue doesn't happen.
The text was updated successfully, but these errors were encountered:
Happened to me too, kinda freaked me out tbh. This behavior also removes focus from the window itself i.e. you cannot type in the editor, so I had to close the browser and came straight to this issues section to check if anyone else also faced this issue.
On: https://learn.svelte.dev/tutorial/headers
When you're typing out the code in the instructions, once you get to 'text/plain' the browser will start spamming downloads of the contents in the iFrame (i.e. if you have "this is a bug" it will download a file with that text in it).
I couldn't replicate this in Chrome
Replication:
copy and paste this into src/routes/+page.server.js
export function load({setHeaders}) {
// set headers
setHeaders({
'Content-Type': 'text'
})
}
In my browser, the page begins reloading constantly at this point.
If you add a '/' at the end of 'text' it will start downloading constantly.
I've noticed that if I paste the entire solution, or preempt the setHeaders({...}) part with a return after it, the issue doesn't happen.
The text was updated successfully, but these errors were encountered: