Skip to content

Commit

Permalink
Create global reference to store as marge (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgruber committed Nov 30, 2017
1 parent 2b8e1aa commit 850d3a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/js/mochawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const bodyEl = document.querySelector('body');
const data = JSON.parse(bodyEl.getAttribute('data-raw'));
const config = JSON.parse(bodyEl.getAttribute('data-config'));

// Add global reference to the store
window.marge = reportStore;

// Register hljs languages
hljs.registerLanguage('javascript', require('highlight.js/lib/languages/javascript'));
hljs.registerLanguage('diff', require('highlight.js/lib/languages/diff'));
Expand Down
1 change: 0 additions & 1 deletion src/js/reportStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class ReportStore {
}

const reportStore = new ReportStore();
window.reportStore = reportStore;
export default reportStore;

export { ReportStore };

0 comments on commit 850d3a9

Please sign in to comment.