Fix broken font on random

parent db289d77
Pipeline #1572 passed with stage
in 43 seconds
......@@ -54,7 +54,7 @@ app.use(function(req, res, next) {
req.args.fgColor = fgColors[Math.floor(Math.random() * fgColors.length)];
} while (req.args.fgColor === req.args.bgColor);
req.args.text = _(sampleTexts[Math.floor(Math.random() * sampleTexts.length)]);
req.args.font = _fonts[Math.ceil(Math.random() * _fonts.length)];
req.args.font = _fonts[Math.ceil(Math.random() * (_fonts.length - 1))];
req.args.icon = Math.ceil(Math.random() * 36);
req.args.signature = _(sampleSignatures[Math.floor(Math.random() * sampleSignatures.length)]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment