Skip to content

Commit

Permalink
fix(web): Remove deprecated registerWebPlugin (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jun 8, 2023
1 parent a883514 commit 1bcb0e3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,4 @@ export class CameraPreviewWeb extends WebPlugin implements CameraPreviewPlugin {
video.style.setProperty('opacity', _options['opacity'].toString());
}
}
}

const CameraPreview = new CameraPreviewWeb();

export { CameraPreview };

import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(CameraPreview);
}

0 comments on commit 1bcb0e3

Please sign in to comment.