Cleainging up, bug hunting and optimizing

This commit is contained in:
Niels
2025-06-07 17:19:19 +02:00
parent c96a4c3387
commit 54b997ad61
16 changed files with 329 additions and 440 deletions
+1 -4
View File
@@ -24,7 +24,7 @@ function checkforold() {
function init() {
db = settings_db_open();
checkforold()
//checkforold()
try {
db.transaction(
function(tx) {
@@ -227,10 +227,7 @@ function getStationFavorite(id) { // Get info about number of clicks and if stat
db.transaction(function(tx) {
var rs = tx.executeSql('SELECT * FROM stations WHERE id = "'+id+'" AND favorite = 1');
res = rs.rows.length
// console.log("FAVO RESULT: "+res+" ID: "+id )
if (res>0) return true; else return false;
})
} catch (err) {
res = 0