Skip to content

Commit caf26fd

Browse files
committed
Made fixes for Safari
1 parent 6138592 commit caf26fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jSQL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@
17011701
// Get all data from the datastore
17021702
self.select = function(model, successCallback) {
17031703
if("function" !== typeof successCallback) successCallback = function(){};
1704-
var transParam = undefined === IDBTransaction ? 'readwrite' : IDBTransaction.READ_WRITE;
1704+
var transParam = undefined === IDBTransaction ? 'readonly' : IDBTransaction.READ_ONLY ;
17051705
var transaction = self.db.transaction([model], transParam), store, request, results = [];
17061706
transaction.onerror = function(){ throw "Could not initiate a transaction"; };;
17071707
store = transaction.objectStore(model);

0 commit comments

Comments
 (0)