mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added a function to log last logs, in case of any crashes
This commit is contained in:
@@ -40,10 +40,14 @@ var Helper = {
|
||||
}
|
||||
console.log("------------ " + new Date() + " ------------");/*RemoveLogging:skip*/
|
||||
}
|
||||
Helper.logs.unshift({log: to_log, date: new Date()});
|
||||
if(Helper.logs.length > 10) {
|
||||
Helper.logs.splice(-1, Helper.logs.length - 10);
|
||||
}
|
||||
try {
|
||||
if(to_log[0] != "FULL PLAYLIST") {
|
||||
Helper.logs.unshift({log: to_log, date: new Date()});
|
||||
if(Helper.logs.length > 10) {
|
||||
Helper.logs.splice(-1, Helper.logs.length - 10);
|
||||
}
|
||||
}
|
||||
} catch(e){}
|
||||
},
|
||||
|
||||
rnd: function(arr) {
|
||||
|
||||
Reference in New Issue
Block a user