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 a88ce5e commit bdf1e8fCopy full SHA for bdf1e8f
packages/screenshot/src/index.js
@@ -101,16 +101,15 @@ const hideElements = elements => {
101
}
102
103
104
-const createSvgBackground = css =>
105
- Buffer.from(svgGradient(css, { width: '1388px', height: '955px' }))
+const createSvgBackground = css => svgGradient(css, { width: '1388px', height: '955px' })
106
107
const getBackground = async (bg = 'transparent') => {
108
if (isHttpUrl(bg)) {
109
const { body } = await got(bg, { encoding: null })
110
return body
111
112
113
- if (bg !== 'transparent' && !bg.includes('gradient')) {
+ if (!bg.includes('gradient')) {
114
bg = `linear-gradient(45deg, ${bg} 0%, ${bg} 100%)`
115
116
0 commit comments