The commit() method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
commit()
MDN Reference