Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 569526e

Browse files
committed
add the pattern path when pushing the pattern
1 parent 7feab4c commit 569526e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/styleguide/js/styleguide.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ function receiveIframeMessage(event) {
500500
} else if (event.data.patternpartial != undefined) {
501501

502502
if (!urlHandler.skipBack) {
503+
503504
var iFramePath = urlHandler.getFileName(event.data.patternpartial);
504-
urlHandler.pushPattern(event.data.patternpartial);
505+
urlHandler.pushPattern(event.data.patternpartial, event.data.path);
505506
if (wsnConnected) {
506507
wsn.send( '{"url": "'+iFramePath+'", "patternpartial": "'+event.data.patternpartial+'" }' );
507508
}

0 commit comments

Comments
 (0)