mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 10:06:23 +02:00
add babel-polyfill to support generators etc. fixes #159
This commit is contained in:
@ -916,6 +916,13 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl, fontStyleTag, fontStyl
|
|||||||
chrome.extension.getURL('lib/screenlog.js') +
|
chrome.extension.getURL('lib/screenlog.js') +
|
||||||
'"></script>';
|
'"></script>';
|
||||||
|
|
||||||
|
if (jsMode === JsModes.ES6) {
|
||||||
|
contents +=
|
||||||
|
'<script src="' +
|
||||||
|
chrome.extension.getURL('lib/babel-polyfill.min.js') +
|
||||||
|
'"></script>';
|
||||||
|
}
|
||||||
|
|
||||||
if (js) {
|
if (js) {
|
||||||
contents += '<script>\n' + js + '\n//# sourceURL=userscript.js';
|
contents += '<script>\n' + js + '\n//# sourceURL=userscript.js';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user