diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 00:12:45 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 01:27:51 +0100 |
commit | 72dcf70db20ef5d09004b1be1355612500a32592 (patch) | |
tree | 44e7a591ad12340e0bd00e8bf49b904d75c5c853 /web/src/js/ducks/eventLog.js | |
parent | fea6041cde7c9642007d852272573bfe97c360a3 (diff) | |
download | mitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.tar.gz mitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.tar.bz2 mitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.zip |
mitmweb: fix event display
Diffstat (limited to 'web/src/js/ducks/eventLog.js')
-rw-r--r-- | web/src/js/ducks/eventLog.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/src/js/ducks/eventLog.js b/web/src/js/ducks/eventLog.js index 776e4b08..73eaf2e8 100644 --- a/web/src/js/ducks/eventLog.js +++ b/web/src/js/ducks/eventLog.js @@ -49,14 +49,12 @@ export function toggleVisibility() { return { type: TOGGLE_VISIBILITY } } -let logId = 1 // client-side log ids are odd export function add(message, level = 'web') { let data = { - id: logId, + id: Math.random().toString(), message, level, } - logId += 2 return { type: ADD, cmd: "add", |