Commit 3ed8b20b authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

[EOC] Display float variables as floats even if they're 1 or 0

It looks questionable when some of the numbers are ints when they
should be floats, like confidence.

Bug: 854243
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: I919aa30f55a2bcf4a3abac89c5ae0aa989fd9745
Reviewed-on: https://chromium-review.googlesource.com/1107016Reviewed-by: default avatarPatrick Noland <pnoland@chromium.org>
Reviewed-by: default avatarFilip Gorski <fgorski@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570249}
parent b7360540
......@@ -80,11 +80,11 @@ function addCachedSuggestionResultsToPage(results) {
resultClone.querySelector('#suggestion-result-url').textContent =
result.url;
resultClone.querySelector('#peek-confidence').textContent =
result.peekConditions.confidence;
result.peekConditions.confidence.toFixed(2);
resultClone.querySelector('#peek-page-scroll-percentage').textContent =
result.peekConditions.pageScrollPercentage;
result.peekConditions.pageScrollPercentage.toFixed(2);
resultClone.querySelector('#peek-min-seconds-on-page').textContent =
result.peekConditions.minimumSecondsOnPage;
result.peekConditions.minimumSecondsOnPage.toFixed(2);
resultClone.querySelector('#peek-max-peeks').textContent =
result.peekConditions.maximumNumberOfPeeks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment