Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
setup for adding solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMrn committed Feb 11, 2020
1 parent e41373f commit b15a12d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/htmlStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const ignitionLoaderScript = `
window.ignite({
report: **report**,
config: **config**,
solutions: [],
solutions: **solutions**,
telescopeUrl: '',
shareEndpoint: '',
defaultTab: 'StackTab',
Expand Down
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare module 'ignitionIframeScript' {

type FlareReport = {
context: {};
solutions: Array<{}>;
};

interface Window {
Expand Down
3 changes: 2 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ export function hydrateIgnitionLoader(
) {
return ignitionLoaderScript
.replace('**report**', JSON.stringify(addRequiredContext(report)))
.replace('**config**', JSON.stringify(config));
.replace('**config**', JSON.stringify(config))
.replace('**solutions**', JSON.stringify(report.solutions));
}

0 comments on commit b15a12d

Please sign in to comment.