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.
This commit is contained in:
Felix Epp 2015-12-29 22:41:43 +01:00 committed by lilia
parent 557d33bf88
commit 62af9ff678

View file

@ -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) {