summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-10-22 22:31:43 +0800
committerHaishan <[email protected]>2018-10-23 00:06:17 +0800
commit26e223c9cc5883393c73e08a5583f0086756e442 (patch)
tree17401c87236d745ae945d780dd60bd9900b6b908 /src/api
parent515777e186405d89aa36dc3c9029a0ead6eb5e32 (diff)
style: tweak log styles
Diffstat (limited to 'src/api')
-rw-r--r--src/api/logs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/logs.js b/src/api/logs.js
index 0ef2a1e..58f8137 100644
--- a/src/api/logs.js
+++ b/src/api/logs.js
@@ -18,6 +18,7 @@ function getURLAndInit() {
const Size = 300;
+let even = false;
const store = {
logs: [],
size: Size,
@@ -28,6 +29,7 @@ const store = {
// mutate input param in place intentionally
o.time = time;
o.id = now - 0;
+ o.even = even = !even;
this.logs.unshift(o);
if (this.logs.length > this.size) this.logs.pop();
// TODO consider throttle this