Bläddra i källkod

Troubleshooting log viewer: Show full date in title text (#967)

This allows you to see the absolute date by hovering over a relative
timestamp.
Danilo Bargen 5 år sedan
förälder
incheckning
b0fe1e585c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      troubleshoot/log.js

+ 2 - 2
troubleshoot/log.js

@@ -146,9 +146,9 @@ function showLog(data) {
         elements.log.appendChild(createElementFromHTML(`
             <tbody>
                 <tr class="record ${escapeHTML(type)}">
-                    <td class="date">${((timestampMs - startTimestampMs) / 1000).toFixed(3)}</td>
+                    <td class="date" title="${new Date(timestampMs)}">${((timestampMs - startTimestampMs) / 1000).toFixed(3)}</td>
                     <td class="tag">${tag}</td>
-                    <td class="message">${values.map((value) => formatRecordValue(value)).join('\n')}</td>  
+                    <td class="message">${values.map((value) => formatRecordValue(value)).join('\n')}</td>
                 </tr>
             </tbody>`));
     }