- Clone this gist
git clone https://gist.github.com/efa76a545a94571c6a98a5888ab673e8.git brave-indexeddb-test
- Change directory
cd brave-indexeddb-test
- Run
python3 -m http.server
from terminal - Open http://localhost:8000 in Brave.
- Open Developer Tools > Console
- See if there is error.
Last active
March 14, 2022 09:23
-
-
Save xubaiw/efa76a545a94571c6a98a5888ab673e8 to your computer and use it in GitHub Desktop.
Brave IndexedDB Test
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
<html> | |
<head> | |
<title> | |
Brave IndexedDB Test | |
</title> | |
<script type="module" src="index.js"></script> | |
</head> | |
<body> | |
<h1> | |
Brave IndexedDB Test | |
</h1> | |
</body> | |
</html> |
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
const request = indexedDB.open("test-db", 1); | |
request.onerror = function (event) { | |
console.error(event); | |
}; | |
request.onupgradeneeded = function (event) { | |
let db = event.target.result; | |
db.createObjectStore("test-objectstore"); | |
console.log(event); | |
}; | |
request.onsuccess = function (event) { | |
console.log(event); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment