Skip to content

Commit

Permalink
fixed parsing of dom element data for code viewer/mustache browser
Browse files Browse the repository at this point in the history
  • Loading branch information
e2tha-e committed Sep 30, 2019
1 parent 6e16f4c commit 2c66b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/listeners/mustache-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class {
const titleState = this.$orgs['#sg-code-title-mustache'].getState();

if (titleState.classList.includes('sg-code-title-active')) {
const patternPartial = this.$orgs['#sg-code-container'].getState().data.patternpartial;
const patternPartial = this.$orgs['#sg-code-container'].getState().attribs['data-patternpartial'];
const path = window.location.origin + '/mustache-browser?partial=' + patternPartial;

// Load Mustache Browser
Expand Down

0 comments on commit 2c66b22

Please sign in to comment.