@lvce-editor/iframe-worker 5.23.0 → 5.24.0
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/dist/iframeWorkerMain.js +17 -1
- package/package.json +1 -1
package/dist/iframeWorkerMain.js
CHANGED
|
@@ -1810,6 +1810,21 @@ const getSecret = async key => {
|
|
|
1810
1810
|
return invoke('WebView.getSecret', key);
|
|
1811
1811
|
};
|
|
1812
1812
|
|
|
1813
|
+
const getWebViewInfo = webViewId => {
|
|
1814
|
+
const rpcs = getAll();
|
|
1815
|
+
for (const value of Object.values(rpcs)) {
|
|
1816
|
+
if (value.webViewId === webViewId) {
|
|
1817
|
+
return value;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
return undefined;
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
const GetWebViewInfo = {
|
|
1824
|
+
__proto__: null,
|
|
1825
|
+
getWebViewInfo
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1813
1828
|
const saveState = async () => {
|
|
1814
1829
|
const all = getAll();
|
|
1815
1830
|
const serialized = [];
|
|
@@ -1833,7 +1848,8 @@ const commandMap = {
|
|
|
1833
1848
|
'WebView.create2': create2,
|
|
1834
1849
|
'WebView.create3': create3,
|
|
1835
1850
|
'WebView.saveState': saveState,
|
|
1836
|
-
'WebView.getSecret': getSecret
|
|
1851
|
+
'WebView.getSecret': getSecret,
|
|
1852
|
+
'WebView.getWebViewInfo': GetWebViewInfo
|
|
1837
1853
|
};
|
|
1838
1854
|
|
|
1839
1855
|
const listen = async () => {
|