mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 02:26:20 +02:00
eslint fixes
This commit is contained in:
@ -1330,11 +1330,18 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl
|
|||||||
scope.clearConsole();
|
scope.clearConsole();
|
||||||
} else if (e.which === 13) {
|
} else if (e.which === 13) {
|
||||||
window.onMessageFromConsole('> ' + e.target.value);
|
window.onMessageFromConsole('> ' + e.target.value);
|
||||||
|
|
||||||
|
/* eslint-disable no-underscore-dangle */
|
||||||
frame.contentWindow._wmEvaluate(e.target.value);
|
frame.contentWindow._wmEvaluate(e.target.value);
|
||||||
|
|
||||||
|
/* eslint-enable no-underscore-dangle */
|
||||||
|
|
||||||
e.target.value = '';
|
e.target.value = '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.onMessageFromConsole = function() {
|
window.onMessageFromConsole = function() {
|
||||||
|
|
||||||
|
/* eslint-disable no-param-reassign */
|
||||||
[...arguments].forEach(function(arg) {
|
[...arguments].forEach(function(arg) {
|
||||||
if (arg && arg.indexOf && arg.indexOf('filesystem:chrome-extension') !== -1) {
|
if (arg && arg.indexOf && arg.indexOf('filesystem:chrome-extension') !== -1) {
|
||||||
arg = arg.replace(/filesystem:chrome-extension.*\.js:(\d+):*(\d*)/g, 'script $1:$2');
|
arg = arg.replace(/filesystem:chrome-extension.*\.js:(\d+):*(\d*)/g, 'script $1:$2');
|
||||||
@ -1344,6 +1351,8 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl
|
|||||||
logCount++;
|
logCount++;
|
||||||
});
|
});
|
||||||
logCountEl.textContent = logCount;
|
logCountEl.textContent = logCount;
|
||||||
|
|
||||||
|
/* eslint-enable no-param-reassign */
|
||||||
};
|
};
|
||||||
|
|
||||||
function compileNodes() {
|
function compileNodes() {
|
||||||
|
Reference in New Issue
Block a user