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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user