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 457ae2c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/expo-sqlite/src/SQLite.web.ts
@@ -1,2 +1,11 @@
export const { openDatabase } = global;
export function openDatabase(fileInfo, ...args) {
let name = fileInfo;

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

global.openDatabase(name, ...args);
}

export default { openDatabase };

0 comments on commit 457ae2c

Please sign in to comment.