From 62af9ff6786a7fc06d831b142086af4362c1121b Mon Sep 17 00:00:00 2001 From: Felix Epp Date: Tue, 29 Dec 2015 22:41:43 +0100 Subject: [PATCH] Add user-agent string to DebugLog // fixes WhisperSystems/Signal-Desktop#404 The user-agent string includes the information needed (OS + Chrome version) and the console.get() function seems just right. The debugLog itself is not manipulated. --- js/debugLog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/debugLog.js b/js/debugLog.js index 57ec4504..c7d79b82 100644 --- a/js/debugLog.js +++ b/js/debugLog.js @@ -18,7 +18,7 @@ debugLog.push(str); }; console.get = function() { - return debugLog.join('\n'); + return window.navigator.userAgent + '\n' + debugLog.join('\n'); }; console.post = function(log) { if (log === undefined) {