mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 08:47:16 +00:00
Merge pull request #2132 from thelounge/xpaw/no-client-lodash
Remove unintentionally included lodash in client build
This commit is contained in:
commit
61438cbe5a
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const constants = require("./constants");
|
||||
const templates = require("../views");
|
||||
|
||||
|
@ -22,8 +21,8 @@ function getStoredTypes(condensed) {
|
|||
function updateText(condensed, addedTypes) {
|
||||
const obj = getStoredTypes(condensed);
|
||||
|
||||
_.forOwn(addedTypes, (count, type) => {
|
||||
obj[type] += count;
|
||||
Object.keys(addedTypes).map((type) => {
|
||||
obj[type] += addedTypes[type];
|
||||
condensed.data(type, obj[type]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue