DmitrMakeev commited on
Commit
1aa7ec2
·
verified ·
1 Parent(s): 56ac4cc

Update buil_json.html

Browse files
Files changed (1) hide show
  1. buil_json.html +1 -1
buil_json.html CHANGED
@@ -108,7 +108,7 @@ document.addEventListener('DOMContentLoaded', function() {
108
  document.getElementById('saveToClipboard').addEventListener('click', function() {
109
  const json = editor.get();
110
  const autonext = document.getElementById('autonext').checked ? 1 : 0;
111
- const jsonString = JSON.stringify({ ...json, autonext });
112
  navigator.clipboard.writeText(jsonString).then(function() {
113
  alert('JSON saved to clipboard!');
114
  }, function(err) {
 
108
  document.getElementById('saveToClipboard').addEventListener('click', function() {
109
  const json = editor.get();
110
  const autonext = document.getElementById('autonext').checked ? 1 : 0;
111
+ const jsonString = JSON.stringify(json) + (autonext ? ', "autonext":1' : '');
112
  navigator.clipboard.writeText(jsonString).then(function() {
113
  alert('JSON saved to clipboard!');
114
  }, function(err) {