-
Notifications
You must be signed in to change notification settings - Fork 34
Node gives error btoa is not defined #38
Copy link
Copy link
Open
Description
Solved by replacing in index.js:
[url('data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2" fill-opacity="0.2"><rect x="1" width="1" height="1"/><rect y="1" width="1" height="1"/></svg>')'),"center center / 16px 16px","repeat","#fff"]
to
[url('data:image/svg+xml;base64,${Buffer.from('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2" fill-opacity="0.2"><rect x="1" width="1" height="1"/><rect y="1" width="1" height="1"/></svg>').toString()}'),"center center / 16px 16px","repeat","#fff"]
Hope that helps anyone
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels