Closed panther99 closed 8 years ago
I have Google Chrome extension which get data to IndexedDB with Dexie and it works okay, however, when I try to get that data from another HTML page I get an empty array.
<head> <meta charset="utf-8"> <script src="js/jquery.min.js"></script> <script src="js/Dexie.min.js"></script> </head> <body> <div class="container"> </div> <script> var db = new Dexie("myDB"); db.version(1).stores({ likes: 'url, date, time' }); db.open(); db.likes.toArray(function(like) { console.log(like); }).catch(function(error) { alert("Error: " + error); }); </script> </body>
I have Google Chrome extension which get data to IndexedDB with Dexie and it works okay, however, when I try to get that data from another HTML page I get an empty array.