log js errors

This commit is contained in:
j 2011-10-25 15:30:14 +02:00
commit d9e4d26b95
9 changed files with 136 additions and 71 deletions

View file

@ -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,