-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6.1 : Implemented Download Functionality & other fixes (#134)
* Removed 'allowJs' * fix : Subtitle turn off * Transition bg & txt color for body * prevent potential issue of activating pwa in serve when eruda is turned off * removed audio dataset seconds in favor of currentTime * future : library icons integrated
- Loading branch information
Showing
14 changed files
with
176 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
/* | ||
/* | ||
Need to Learn IndexedDB | ||
const openDb = indexedDB.open('library', 1); | ||
let db: IDBDatabase; | ||
//upgrade event | ||
openDb.onupgradeneeded = () => { | ||
db = openDb.result; | ||
console.log("upgrade needed", db); | ||
} | ||
//on success | ||
openDb.onsuccess = () => { | ||
console.log("success is called", db); | ||
// Create the history object store | ||
const historyStore = db.createObjectStore( | ||
'history', { keyPath: 'id' } | ||
); | ||
console.log(db.objectStoreNames) | ||
} | ||
openDb.onerror = () => { | ||
console.log('error : ', openDb.result) | ||
} | ||
// deletion procedure | ||
function deleteDB() { | ||
const deletion_request = indexedDB.deleteDatabase('library') | ||
deletion_request.onerror = _ => console.log('Error : ', _); | ||
deletion_request.onsuccess = _ => console.log('Success : ', _); | ||
} | ||
// to view existing dbs in eruda | ||
indexedDB.databases().then(_ => _.forEach($ => console.log($))) | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.