@lvce-editor/extension-host-worker 3.2.0 → 3.3.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.
|
@@ -2837,6 +2837,9 @@ const registerWebViewProvider = provider => {
|
|
|
2837
2837
|
};
|
|
2838
2838
|
const getWebViewInfo = providerId => {
|
|
2839
2839
|
const webView = getWebView(providerId);
|
|
2840
|
+
if (!webView) {
|
|
2841
|
+
throw new Error(`Webview not found: ${providerId}`);
|
|
2842
|
+
}
|
|
2840
2843
|
return {
|
|
2841
2844
|
uid: webView.uid,
|
|
2842
2845
|
origin: webView.origin,
|
package/package.json
CHANGED