Skip to content

Commit 732ef8b

Browse files
authored
fix: check if 'btoa' exists for old IE versions (#479)
1 parent c623f27 commit 732ef8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/injectStylesIntoStyleTag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function applyToTag(style, options, obj) {
187187
style.removeAttribute('media');
188188
}
189189

190-
if (sourceMap && btoa) {
190+
if (sourceMap && typeof btoa !== 'undefined') {
191191
css += `\n/*# sourceMappingURL=data:application/json;base64,${btoa(
192192
unescape(encodeURIComponent(JSON.stringify(sourceMap)))
193193
)} */`;

0 commit comments

Comments
 (0)