Skip to content

Commit

Permalink
Adding clarifying comment and removing root controller
Browse files Browse the repository at this point in the history
  • Loading branch information
poffdeluxe committed Jan 24, 2020
1 parent 7de5b89 commit 7f97c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions x-pack/legacy/plugins/canvas/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const shimCoreStart = {
...npStart.core,
};
const shimSetupPlugins = {
// When the frontend Canvas plugin is moved to NP, we can declare reporting as an optional dependency
// and enable exports based on existence of the plugin.
// For now, use an injected config to mimic this behavior in the meantime.
reporting: npSetup.core.injectedMetadata.getInjectedVar('reportingBrowserType') ? {} : undefined,
};

Expand All @@ -34,8 +37,6 @@ const shimStartPlugins: CanvasStartDeps = {
// ToDo: Copy directly into canvas
formatMsg,
QueryString,
// ToDo: Remove in favor of core.application.register
setRootController: chrome.setRootController,
storage: Storage,
// ToDo: Won't be a part of New Platform. Will need to handle internally
trackSubUrlForApp: chrome.trackSubUrlForApp,
Expand Down
1 change: 0 additions & 1 deletion x-pack/legacy/plugins/canvas/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export interface CanvasStartDeps {
absoluteToParsedUrl: (url: string, basePath: string) => any;
formatMsg: any;
QueryString: any;
setRootController: Chrome['setRootController'];
storage: typeof Storage;
trackSubUrlForApp: Chrome['trackSubUrlForApp'];
};
Expand Down

0 comments on commit 7f97c7f

Please sign in to comment.