We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480d566 commit 146f11cCopy full SHA for 146f11c
examples/index.html
@@ -22,8 +22,7 @@
22
} else if (urlObj.pathname === '/marquee') {
23
html = `<marquee>${urlObj.searchParams.get('q') || '🐈 Nothing to preview 🐈'}</marquee>`
24
}
25
- const promiseHTML = new Promise(resolve => resolve(html))
26
- return new Promise(resolve => resolve({ok: true, text: () => promiseHTML}))
+ return Promise.resolve({ok: true, text: () => Promise.resolve(html)})
27
28
window.fetch = fakeFetch
29
</script>
0 commit comments