mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-04-29 10:11:30 +00:00
More linting errors
This commit is contained in:
@@ -42,7 +42,7 @@ exports["colour-set-alpha"] = makeSerialColourOperator(function (colour, operato
|
||||
return colour.display().toString();
|
||||
});
|
||||
|
||||
exports["colour-contrast"] = makeParallelColourOperator(function (colours, operator) {
|
||||
exports["colour-contrast"] = makeParallelColourOperator(function (colours) {
|
||||
var colourContrasts = [];
|
||||
$tw.utils.each(colours,function(colour,index) {
|
||||
if(!colour) {
|
||||
|
||||
@@ -32,8 +32,9 @@ exports.parseCSSColorObject = function(colourString) {
|
||||
var c = null;
|
||||
try {
|
||||
c = new Color(colourString);
|
||||
} catch() {
|
||||
// Return null if there is an error
|
||||
} catch(e) {
|
||||
// Keep the linter happy
|
||||
e;
|
||||
}
|
||||
return c;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user