Skip to content

Commit f7f0ad5

Browse files
committed
Fixed Base64 encode method if window doesn't have bota method
1 parent b906e2a commit f7f0ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/amplitude.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@
194194
}
195195
} catch (e) {
196196
//log(e);
197-
return Base64._encode(input);
198197
}
198+
return Base64._encode(input);
199199
},
200200

201201
_encode: function (input) {
@@ -235,8 +235,8 @@
235235
}
236236
} catch (e) {
237237
//log(e);
238-
return Base64._decode(input);
239238
}
239+
return Base64._decode(input);
240240
},
241241

242242
_decode: function (input) {

0 commit comments

Comments
 (0)