Chromium Code Reviews| Index: remoting/webapp/base/js/base.js |
| diff --git a/remoting/webapp/base/js/base.js b/remoting/webapp/base/js/base.js |
| index 73a5b3abf20bcfda4466771e2ac7c9cd389bd477..743f0c726a77aaf29ad6ef20cbff7ded38223511 100644 |
| --- a/remoting/webapp/base/js/base.js |
| +++ b/remoting/webapp/base/js/base.js |
| @@ -747,6 +747,16 @@ base.jsonParseSafe = function(jsonString) { |
| }; |
| /** |
| + * Return the current time as a formatted string suitable for logging. |
| + * |
| + * @return {string} The current time, formatted as the standard ISO string. |
| + * [yyyy-mm-ddDhh:mm:ss.xyz] |
| + */ |
| +base.timestamp = function() { |
| + return '[' + new Date().toISOString() + ']'; |
|
kelvinp
2015/04/16 18:13:01
Use standard formatting instead of custom formatti
|
| +}; |
| + |
| +/** |
| * Size the current window to fit its content vertically. |
| */ |
| base.resizeWindowToContent = function() { |