Skip to content

Commit

Permalink
Update tutorials.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey authored Dec 23, 2021
1 parent 0298734 commit 105b274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/common/tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function fill_codeblocks(query) {
* =. By removing whitespace, the url is more robust against email
* handling. The others keep things short. */
let src = query[key].replace(/(\s|\+)/g, '').replace(/\./g, '/').replace(/-/g, '+').replace(/_/g, '=');
src = new Uint8Array(atob(src).split("").map((c) => c.charCodeAt(0)));
src = new Uint8Array(atob(src).split('').map((c) => c.charCodeAt(0)));
src = pako.inflate(src, {to: 'string', raw: true});
if ($('.CodeMirror', block).length) {
$('.CodeMirror', block)[0].CodeMirror.setValue(src);
Expand Down

0 comments on commit 105b274

Please sign in to comment.