mirror of https://github.com/zulip/zulip.git
b3b83f223d
The only thing get_color() does is look up a sub: exports.get_color = function (stream_name) { const sub = exports.get_sub(stream_name); if (sub === undefined) { return stream_color.default_color; } return sub.color; }; So if we have a sub already, there's no point calling the helper. Obviously, this isn't a huge deal, but it happens N times during page load. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore | ||
favicon.ico |