VuetifyImageInput icon indicating copy to clipboard operation
VuetifyImageInput copied to clipboard

Node gives error btoa is not defined

Open ehudettun opened this issue 3 years ago • 0 comments

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

ehudettun avatar Sep 18 '21 12:09 ehudettun