1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 10:06:23 +02:00

script.js: dont put screenlog.js when exporting as file

This commit is contained in:
Kushagra Gour
2017-12-11 14:55:45 +05:30
parent ffeae1ec6a
commit c232a167ef

View File

@ -959,7 +959,8 @@ globalConsoleContainerEl
});
}
function getCompleteHtml(html, css, js) {
/* eslint max-params: ["error", 4] */
function getCompleteHtml(html, css, js, isForExport) {
var externalJs = externalJsTextarea.value
.split('\n')
.reduce(function(scripts, url) {
@ -989,10 +990,12 @@ globalConsoleContainerEl
externalJs +
'\n';
if (!isForExport) {
contents +=
'<script src="' +
chrome.extension.getURL('lib/screenlog.js') +
'"></script>';
}
if (jsMode === JsModes.ES6) {
contents +=
@ -1151,7 +1154,7 @@ globalConsoleContainerEl
css = result[1],
js = result[2];
var fileContent = getCompleteHtml(html, css, js);
var fileContent = getCompleteHtml(html, css, js, true);
var d = new Date();
var fileName = [