diff --git a/scripts/listeners/mustache-browser.js b/scripts/listeners/mustache-browser.js index 0938d1d..cea0381 100644 --- a/scripts/listeners/mustache-browser.js +++ b/scripts/listeners/mustache-browser.js @@ -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