forked from 0x2620/pandora
log js errors
This commit is contained in:
parent
1af3139e16
commit
d9e4d26b95
9 changed files with 136 additions and 71 deletions
|
|
@ -20,6 +20,16 @@ appPanel
|
|||
statusbar
|
||||
*/
|
||||
|
||||
window.onerror = function(error, url, line) {
|
||||
try {
|
||||
pandora.api.log({
|
||||
text: error,
|
||||
url: url,
|
||||
line: line
|
||||
});
|
||||
} catch(e) {}
|
||||
};
|
||||
|
||||
(function() {
|
||||
|
||||
var debug = localStorage && localStorage.debug,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue