@livechatta/sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +5 -5
- package/dist/cjs/livechatta.cjs.js +2 -1
- package/dist/cjs/livechatta.cjs.js.map +1 -1
- package/dist/cjs/livechatta.cjs.min.js +1 -1
- package/dist/cjs/livechatta.cjs.min.js.map +1 -1
- package/dist/esm/livechatta.esm.js +2 -1
- package/dist/esm/livechatta.esm.js.map +1 -1
- package/dist/esm/livechatta.esm.min.js +1 -1
- package/dist/esm/livechatta.esm.min.js.map +1 -1
- package/dist/umd/livechatta.umd.js +2 -1
- package/dist/umd/livechatta.umd.js.map +1 -1
- package/dist/umd/livechatta.umd.min.js +1 -1
- package/dist/umd/livechatta.umd.min.js.map +1 -1
- package/package.json +2 -6
|
@@ -298,7 +298,8 @@
|
|
|
298
298
|
const { Capacitor, registerPlugin } = await import('@capacitor/core');
|
|
299
299
|
if (Capacitor && Capacitor.isPluginAvailable && Capacitor.isPluginAvailable('HopBridge')) {
|
|
300
300
|
const HopBridge = registerPlugin('HopBridge');
|
|
301
|
-
|
|
301
|
+
// Only the dialogs asked for: video adds the camera prompt, audio:false skips the mic (and Bluetooth).
|
|
302
|
+
const status = await HopBridge.requestPermissions({ wantVideo, wantAudio });
|
|
302
303
|
mic = (status === null || status === void 0 ? void 0 : status.mic) || 'prompt';
|
|
303
304
|
cam = (status === null || status === void 0 ? void 0 : status.cam) || 'prompt';
|
|
304
305
|
}
|