Commit 17c07054 authored by Robert Knight's avatar Robert Knight

Remove obsolete type casts

parent 4b699ae2
...@@ -71,9 +71,7 @@ function init() { ...@@ -71,9 +71,7 @@ function init() {
const sidebarConfig = /** @type {SidebarConfig} */ (getConfig('sidebar')); const sidebarConfig = /** @type {SidebarConfig} */ (getConfig('sidebar'));
const hypothesisAppsOrigin = new URL( const hypothesisAppsOrigin = new URL(sidebarConfig.sidebarAppUrl).origin;
/** @type {string} */ (sidebarConfig.sidebarAppUrl)
).origin;
const portProvider = new PortProvider(hypothesisAppsOrigin); const portProvider = new PortProvider(hypothesisAppsOrigin);
const eventBus = new EventBus(); const eventBus = new EventBus();
...@@ -85,7 +83,7 @@ function init() { ...@@ -85,7 +83,7 @@ function init() {
); );
portProvider.on('frameConnected', (source, port) => portProvider.on('frameConnected', (source, port) =>
/** @type {Sidebar} */ (sidebar).onFrameConnected(source, port) sidebar.onFrameConnected(source, port)
); );
destroyables.push(portProvider, sidebar, notebook); destroyables.push(portProvider, sidebar, notebook);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment