aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/ducks/eventLog.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-23 00:12:45 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-23 01:27:51 +0100
commit72dcf70db20ef5d09004b1be1355612500a32592 (patch)
tree44e7a591ad12340e0bd00e8bf49b904d75c5c853 /web/src/js/ducks/eventLog.js
parentfea6041cde7c9642007d852272573bfe97c360a3 (diff)
downloadmitmproxy-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.js4
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",