From 268da7943f3c8a611a741ba6d5ae06f19dadcf6a Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 19 Aug 2020 13:53:08 -0700 Subject: [PATCH] view manifest for chart view --- js/left-menu.js | 5 +++-- public.json | 1 - view-manifest.json | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 view-manifest.json diff --git a/js/left-menu.js b/js/left-menu.js index 8460fcc..3918e02 100644 --- a/js/left-menu.js +++ b/js/left-menu.js @@ -16,9 +16,10 @@ class LeftMenu extends HTMLElement { //List of apps available in the menu. this.appList = [ { - url: CHART_URL, + // A JSON manifest can be used for View Options starting in runtime v16.83.53.*+ + // Any properties in the manifest will overwrite other properties given here + manifestUrl: window.location.href.replace('platform-window.html', 'view-manifest.json'), printName: 'OF Chart', - processAffinity: 'ps_1' }, { url: 'https://www.tradingview.com/chart/?symbol=NASDAQ:AAPL', diff --git a/public.json b/public.json index 593fe4c..2be2756 100644 --- a/public.json +++ b/public.json @@ -51,7 +51,6 @@ "content": [ { "type": "stack", - "id": "no-drop-target", "content": [ { "type": "component", diff --git a/view-manifest.json b/view-manifest.json new file mode 100644 index 0000000..03e171d --- /dev/null +++ b/view-manifest.json @@ -0,0 +1,4 @@ +{ + "processAffinity": "ps_1", + "url": "https://cdn.openfin.co/embed-web/chart.html" +} \ No newline at end of file