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:
parent
557d33bf88
commit
62af9ff678
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
debugLog.push(str);
|
debugLog.push(str);
|
||||||
};
|
};
|
||||||
console.get = function() {
|
console.get = function() {
|
||||||
return debugLog.join('\n');
|
return window.navigator.userAgent + '\n' + debugLog.join('\n');
|
||||||
};
|
};
|
||||||
console.post = function(log) {
|
console.post = function(log) {
|
||||||
if (log === undefined) {
|
if (log === undefined) {
|
||||||
|
|
Loading…
Reference in a new issue