Update buil_json.html
Browse files- 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(
|
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) {
|