remove host header option

main
Mike Fix 3 years ago
parent 95f0f23190
commit 43c2060707
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -34,8 +34,6 @@ export default async function id(req, res) {
}
}
const host = (req.headers && req.headers.host) || 'carbon.now.sh'
try {
await chrome.font(NOTO_COLOR_EMOJI_URL)
} catch (e) {
@ -58,7 +56,7 @@ export default async function id(req, res) {
const queryString = state ? `state=${state}` : qs.stringify(params)
await page.goto(`https://${host}/${id ? id : `?${queryString}`}`)
await page.goto(`https://carbon.now.sh/${id ? id : `?${queryString}`}`)
await page.addScriptTag({ url: DOM_TO_IMAGE_URL })
await page.waitForSelector('.export-container', { visible: true, timeout: 9500 })

Loading…
Cancel
Save