We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e76ee91 commit 8e18694Copy full SHA for 8e18694
script.js
@@ -36,7 +36,7 @@ function save() {
36
headers: {
37
'Content-type': 'application/json'
38
},
39
- body: lines.join('\n').replace(/\xA0/g,' ').replace(/\s+/g, ' ')
+ body: lines.map(line => line.replace(/\xA0/g,' ').replace(/\s+/g, ' ')).join('\n')
40
}).then(res => res.ok ? Promise.resolve() : Promise.reject(res));
41
}
42
@@ -47,7 +47,7 @@ function autoSave() {
47
.catch(r => console.log(r));
48
49
50
-load(); //.then(autoSave);
+load().then(autoSave);
51
52
function appendNewSpan() {
53
let i = document.getElementsByTagName("span").length;
0 commit comments