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:
@ -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');
|
||||
|
Reference in New Issue
Block a user