public/js/idb.js
// function that will fire if an attempt to submit a new budget and the internet connetion is not applied
function that will fire if an attempt to submit a new budget and the internet connetion is not applied
function that will fire if an attempt to submit a new budget and the internet connetion is not applied
function saveRecord(record) {
    const transaction = db.transaction(["new_budget"], "readwrite")
    const budgetStore = transaction.objectStore('new_budget')
    budgetStore.add(record)
}
function saveRecord ( record ) { const transaction = db . transaction ( [ "new_budget" ] , "readwrite" ) const budgetStore = transaction . objectStore ( 'new_budget' ) budgetStore . add ( record ) }
function that will fire if an attempt to submit a new budget and the internet connetion is not applied
function that will fire if an attempt to submit a new budget and the internet connetion is not applied