Skip to content

Commit

Permalink
fix: Do not use default parameter values for ie brix#357
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer17x committed Sep 1, 2021
1 parent eafa0b0 commit da7abc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enc-base64url.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// Shortcuts
var words = wordArray.words;
var sigBytes = wordArray.sigBytes;
var map = urlSafe === undefined ? this._map : this._safe_map;
var map = urlSafe ? this._safe_map : this._map;

// Clamp excess bits
wordArray.clamp();
Expand Down Expand Up @@ -76,7 +76,7 @@
parse: function (base64Str, urlSafe) {
// Shortcuts
var base64StrLength = base64Str.length;
var map = urlSafe === undefined ? this._map : this._safe_map;
var map = urlSafe ? this._safe_map : this._map;
var reverseMap = this._reverseMap;

if (!reverseMap) {
Expand Down

0 comments on commit da7abc8

Please sign in to comment.