Skip to content

Commit

Permalink
[expo-sqlite][web] updated to ignore key on web
Browse files Browse the repository at this point in the history
  • Loading branch information
gurs1kh committed Jun 3, 2020
1 parent c964941 commit fcf20c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/expo-sqlite/src/SQLite.web.ts
@@ -1,2 +1,13 @@
export const { openDatabase } = global;
export default { openDatabase };

function openDatabaseWeb(fileInfo, ...args) {
let name = fileInfo;

if (typeof fileInfo !== 'string') {
name = fileInfo.name;
}

openDatabase(name, ...args);
}

export default { openDatabase: openDatabaseWeb };

0 comments on commit fcf20c2

Please sign in to comment.