Skip to content

Commit

Permalink
fix: hex conversion in javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow committed Sep 25, 2024
1 parent d3ba0de commit d429b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkdocs_nype/templates/assets/javascripts/nype-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const _gNypeDebug = function () {
};

const _gNypeConvertHexToString = (hexData) => {
if (!hexData) return hexData;
return atob(String.fromCharCode(...hexData.match(/.{1,2}/g).map(byte => parseInt(byte, 16))));
};

Expand Down

0 comments on commit d429b32

Please sign in to comment.