try make codacy happy

This commit is contained in:
David Ralph 2019-03-21 20:00:56 +00:00
parent 89ecde1b69
commit a3a44f885e
4 changed files with 4 additions and 5 deletions

View File

@ -32,5 +32,5 @@ const init = () => {
document.addEventListener('DOMContentLoaded', init);
// Disable right click
document.oncontextmenu=RightMouseDown;
function RightMouseDown() { return false; }
document.oncontextmenu=RightMouseDown;

View File

@ -28,4 +28,4 @@ module.exports = {
rucodes: ['ru', 'ru-MO'],
arcodes: ['ar', 'ar-DZ', 'ar-BH', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-QA', 'ar-SA', 'ar-SY', 'ar-TN', 'ar-AE', 'ar-YE' ],
svcodes: ['sv', 'sv-FI', 'sv-SV']
}
};

View File

@ -53,7 +53,6 @@ module.exports = class Function {
util.setHTMLContent('cite', quotes.authors[id]);
};
static setTime() {
let date = new Date(),
time = [
@ -65,4 +64,4 @@ module.exports = class Function {
// example: [16, 32, 03] -> "16:32:03"
util.setHTMLContent('time', time.join(':'));
};
}
};

View File

@ -53,7 +53,7 @@ module.exports = class Util {
}
}
return index;
};
}
}
return indexOf.call(this, needle) > -1;
};