1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-08 06:43:49 +00:00

Fix contrastcolour typo

This commit is contained in:
Jermolene 2015-04-24 11:13:06 +01:00
parent 2cb1c1d017
commit 3c7082e181

View File

@ -38,8 +38,8 @@ exports.run = function(target,fallbackTarget,colourA,colourB) {
if(rgbColourA && !rgbColourB) { if(rgbColourA && !rgbColourB) {
return rgbColourA; return rgbColourA;
} }
if(rgbColourA && !rgbColourB) { if(rgbColourB && !rgbColourA) {
return rgbColourA; return rgbColourB;
} }
if(!rgbColourA && !rgbColourB) { if(!rgbColourA && !rgbColourB) {
// If neither colour is readable, return a crude inverse of the target // If neither colour is readable, return a crude inverse of the target