@ray-js/ray-ipc-utils 1.1.0-beta-1 → 1.1.0-beta-2
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/lib/kit/ipc/index.js +22 -15
- package/package.json +1 -1
package/lib/kit/ipc/index.js
CHANGED
|
@@ -567,21 +567,28 @@ export const getCurrentSupportedTalkMode = function (deviceId) {
|
|
|
567
567
|
*/
|
|
568
568
|
const handleIpcUrl = nativeUrl => {
|
|
569
569
|
return new Promise(resolve => {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
570
|
+
try {
|
|
571
|
+
ty.ipc.gotoCameraSettingsRouter({
|
|
572
|
+
url: nativeUrl,
|
|
573
|
+
success: res => {
|
|
574
|
+
resolve({
|
|
575
|
+
code: 0,
|
|
576
|
+
data: res
|
|
577
|
+
});
|
|
578
|
+
},
|
|
579
|
+
fail: err => {
|
|
580
|
+
resolve({
|
|
581
|
+
code: -1,
|
|
582
|
+
msg: err
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
} catch (err) {
|
|
587
|
+
resolve({
|
|
588
|
+
code: -1,
|
|
589
|
+
msg: String(err)
|
|
590
|
+
});
|
|
591
|
+
}
|
|
585
592
|
});
|
|
586
593
|
};
|
|
587
594
|
|