1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 18:16:19 +02:00

fix messing utf16 emoji chars while exporting to codepen. fixes #117

This commit is contained in:
Kushagra Gour
2017-05-21 23:02:43 +05:30
parent 44c492120c
commit 18eebe51d8

View File

@ -1440,9 +1440,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl
if (!currentItem.title.match(/Untitled\s\d\d*-\d/)) {
json.title = currentItem.title;
}
json = JSON.stringify(json)
.replace(/"/g, """)
.replace(/'/g, "'")
json = JSON.stringify(json);
codepenForm.querySelector('input').value = json;
codepenForm.submit();
trackEvent('ui', 'openInCodepen');