mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 02:26:20 +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/)) {
|
if (!currentItem.title.match(/Untitled\s\d\d*-\d/)) {
|
||||||
json.title = currentItem.title;
|
json.title = currentItem.title;
|
||||||
}
|
}
|
||||||
json = JSON.stringify(json)
|
json = JSON.stringify(json);
|
||||||
.replace(/"/g, """)
|
|
||||||
.replace(/'/g, "'")
|
|
||||||
codepenForm.querySelector('input').value = json;
|
codepenForm.querySelector('input').value = json;
|
||||||
codepenForm.submit();
|
codepenForm.submit();
|
||||||
trackEvent('ui', 'openInCodepen');
|
trackEvent('ui', 'openInCodepen');
|
||||||
|
Reference in New Issue
Block a user