@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
|
@@ -294,7 +294,8 @@ class Permissions {
|
|
|
294
294
|
const { Capacitor, registerPlugin } = await import('@capacitor/core');
|
|
295
295
|
if (Capacitor && Capacitor.isPluginAvailable && Capacitor.isPluginAvailable('HopBridge')) {
|
|
296
296
|
const HopBridge = registerPlugin('HopBridge');
|
|
297
|
-
|
|
297
|
+
// Only the dialogs asked for: video adds the camera prompt, audio:false skips the mic (and Bluetooth).
|
|
298
|
+
const status = await HopBridge.requestPermissions({ wantVideo, wantAudio });
|
|
298
299
|
mic = (status === null || status === void 0 ? void 0 : status.mic) || 'prompt';
|
|
299
300
|
cam = (status === null || status === void 0 ? void 0 : status.cam) || 'prompt';
|
|
300
301
|
}
|