diff --git a/src/browser/api/browser_view.ts b/src/browser/api/browser_view.ts index 472034e47..c93ef86c1 100644 --- a/src/browser/api/browser_view.ts +++ b/src/browser/api/browser_view.ts @@ -4,7 +4,7 @@ import { addBrowserView, getBrowserViewByIdentity, getWindowByUuidName, OfView, removeBrowserView, updateViewTarget, getInfoByUuidFrame } from '../core_state'; -import { BrowserViewCreationOptions } from '../../../js-adapter/src/api/browserview/browserview'; +import { ViewCreationOptions } from '../../../js-adapter/src/api/view/view'; import convertOptions = require('../convert_options'); import { getInfo as getWebContentsInfo, setIframeHandlers, hookWebContentsEvents} from './webcontents'; import of_events from '../of_events'; @@ -16,7 +16,7 @@ import { downloadScripts } from '../preload_scripts'; const windowCloseListenerMap: WeakMap void>> = new WeakMap(); -export type BrowserViewOpts = WebOptions & BrowserViewCreationOptions; +export type BrowserViewOpts = WebOptions & ViewCreationOptions; export async function create(options: BrowserViewOpts) { // checking if the name-uuid combination is already in use const { uuid, name } = options; diff --git a/src/browser/remote_subscriptions.ts b/src/browser/remote_subscriptions.ts index 4e88936d4..4b91f411b 100644 --- a/src/browser/remote_subscriptions.ts +++ b/src/browser/remote_subscriptions.ts @@ -343,7 +343,7 @@ async function getClassEventEmitter(subscription: RemoteSubscription, runtime: P classEventEmitter = await runtime.fin.Window.wrap({uuid, name}); break; case 'view': - classEventEmitter = runtime.fin.BrowserView.wrapSync({uuid, name}); + classEventEmitter = runtime.fin.View.wrapSync({uuid, name}); } return classEventEmitter;