projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b778638
)
journal-gateway: use localStorage["cursor"] only when it has valid value
v239-15
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 27 Jun 2018 05:50:19 +0000
(14:50 +0900)
committer
Lukáš Nykrýn
<lnykryn@redhat.com>
Fri, 3 May 2019 11:30:26 +0000
(13:30 +0200)
Discovered by LGTM.
(cherry picked from commit
944072feddb73333023d0a98bf87fd2a17f894d3
)
Resolves: #
1705971
src/journal-remote/browse.html
patch
|
blob
|
history
diff --git
a/src/journal-remote/browse.html
b/src/journal-remote/browse.html
index 9f519adbd69840d166c751520822f9c6553002ac..e5162d108897d26f340dd9a181309e3591b67ecd 100644
(file)
--- a/
src/journal-remote/browse.html
+++ b/
src/journal-remote/browse.html
@@
-236,10
+236,12
@@
function entriesLoad(range) {
- if (range == null)
- range = localStorage["cursor"] + ":0";
- if (range == null)
- range = "";
+ if (range == null) {
+ if (localStorage["cursor"] != null && localStorage["cursor"] != "")
+ range = localStorage["cursor"] + ":0";
+ else
+ range = "";
+ }
var url = "/entries";