Still working on network online offline detection...

This commit is contained in:
Scott Idem
2020-03-06 10:19:50 -05:00
parent bb492e8f71
commit 988eceb13e
9 changed files with 119 additions and 85 deletions

View File

@@ -14,7 +14,7 @@ async function render_event_file_records() {
looping_tbl_event_file = true;
console.log('Iterating through the tbl_event_file table...');
await tbl_event_file.iterate(function(value, key, iteration) {
let tbl_event_file_result = await tbl_event_file.iterate(function(value, key, iteration) {
let tbl_file_id = value.id;
let tbl_hosted_file_id = value.hosted_file_id;
let tbl_event_id = value.event_id;
@@ -213,8 +213,15 @@ async function render_event_file_records() {
}).then(function() {
console.log('idb_to_ui: Iterate tbl_event_file looking for files to add is complete');
looping_tbl_event_file = false;
return true;
})
.catch(function (error) {
console.log('Something went wrong in function render_event_file_records.');
console.log(error);
return false;
});
index_open_file_buttons('open_local_file');
return true;