| | |
| | | return |
| | | } |
| | | |
| | | // if (window.GLOB.WebSql) { |
| | | // window.GLOB.WebSql.transaction(tx => { |
| | | // tx.executeSql("SELECT * FROM FUNCS", [], (tx, results) => { |
| | | // let rows = results.rows |
| | | // if (!rows || rows.length === 0) return |
| | | // for (let i = 0; i < rows.length; i++) { |
| | | // window.GLOB.funcs.push({ |
| | | // func_code: rows[i].func_code, |
| | | // key_sql: window.decodeURIComponent(window.atob(rows[i].key_sql)) |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }) |
| | | // } else { |
| | | let objectStore = window.GLOB.IndexDB.transaction('funcs').objectStore('funcs') |
| | | |
| | | objectStore.openCursor().onsuccess = (event) => { |
| | |
| | | cursor.continue() |
| | | } |
| | | } |
| | | // } |
| | | } |
| | | |
| | | /** |