mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Add btoa
back to domstubs.js
This commit is contained in:
parent
3e34eb31d9
commit
27a619246f
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,10 @@ DOMElementSerializer.prototype = {
|
|||
},
|
||||
};
|
||||
|
||||
function btoa (chars) {
|
||||
return Buffer.from(chars, 'binary').toString('base64');
|
||||
}
|
||||
|
||||
const document = {
|
||||
childNodes : [],
|
||||
|
||||
|
@ -241,6 +245,7 @@ Image.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
exports.btoa = btoa;
|
||||
exports.document = document;
|
||||
exports.Image = Image;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue