mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 18:16:19 +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') +
|
||||
'"></script>';
|
||||
|
||||
if (jsMode === JsModes.ES6) {
|
||||
contents +=
|
||||
'<script src="' +
|
||||
chrome.extension.getURL('lib/babel-polyfill.min.js') +
|
||||
'"></script>';
|
||||
}
|
||||
|
||||
if (js) {
|
||||
contents += '<script>\n' + js + '\n//# sourceURL=userscript.js';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user