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.
pull/749/head
Felix Epp 9 years ago committed by lilia
parent 557d33bf88
commit 62af9ff678

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

Loading…
Cancel
Save