mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-01-12 17:22:32 +08:00
Disable no-console problem with inline comment
This commit is contained in:
@@ -28,7 +28,9 @@ module.exports = (Controller) => {
|
||||
|
||||
request(`/api/grab/${domain}`, (err, status, res) => {
|
||||
if (err) {
|
||||
/* eslint-disable no-console */
|
||||
console.error(err);
|
||||
/* eslint-enable no-console */
|
||||
ctrl.$emit('error', 'General UI error.');
|
||||
return false;
|
||||
}
|
||||
@@ -43,7 +45,9 @@ module.exports = (Controller) => {
|
||||
ctrl.$emit('error', res.error);
|
||||
break;
|
||||
default:
|
||||
/* eslint-disable no-console */
|
||||
console.error(`An unrecognized HTTP status ${status} was received.`);
|
||||
/* eslint-enable no-console */
|
||||
ctrl.$emit('error', 'General UI error.');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5,7 +5,9 @@ module.exports = (Controller) => {
|
||||
|
||||
ctrl.$load(({ live }) => {
|
||||
if (!live && !window.ga) {
|
||||
/* eslint-disable no-console */
|
||||
console.warn('Google Analytics module not found.');
|
||||
/* eslint-enable no-console */
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user