Skip to content

Commit

Permalink
Improve link and template generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxal authored Nov 23, 2023
1 parent 51613ce commit abd2a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function generateURL() {
var inputs = document.getElementById("inputs").value
var header = e_header.doc.getValue()
var footer = e_footer.doc.getValue()
var version = "3.0.0" // Vyxal.getVersion()
var version = Vyxal.getVersion()

var url = [flags, header, code, footer, inputs, version];
return window.location.href + "#" + encode(url)
Expand Down Expand Up @@ -125,7 +125,7 @@ function shareOptions(shareType) {
code = Vyxal.getSBCSified(code)
len = code.length
}
output = `# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3)${flagAppendage} ${len} byte${"s".repeat(len != 1)}${utfable ? '' : ' (UTF-8)'}
output = `# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3)${flagAppendage}, ${len} byte${"s".repeat(len != 1)}${utfable ? '' : ' (UTF-8)'}
\`\`\`
${code}
\`\`\`
Expand Down

0 comments on commit abd2a34

Please sign in to comment.