Skip to content

Commit

Permalink
fix(camera)!: don't lazy load Camera plugin to prevent bug in Safari (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-fischer authored Jan 10, 2024
1 parent 2050a48 commit c131f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camera/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { registerPlugin } from '@capacitor/core';

import type { CameraPlugin } from './definitions';
import { CameraWeb } from './web';

const Camera = registerPlugin<CameraPlugin>('Camera', {
web: () => import('./web').then(m => new m.CameraWeb()),
web: () => new CameraWeb(),
});

export * from './definitions';
Expand Down

0 comments on commit c131f71

Please sign in to comment.