mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Use strict equality in darkenColor()
This commit is contained in:
@@ -163,7 +163,7 @@ function darkenColor(color) {
|
||||
for (let i = 1; i < 7; i += 2) {
|
||||
let newVal = Math.round(parseInt('0x' + color.substr(i, 2), 16) * 0.9);
|
||||
let hex = newVal.toString(16);
|
||||
if (hex.length == 1) {
|
||||
if (hex.length === 1) {
|
||||
res += '0';
|
||||
}
|
||||
res += hex;
|
||||
|
||||
Reference in New Issue
Block a user