This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ var urlHandler = {
132
132
document . getElementById ( "sg-viewport" ) . contentWindow . postMessage ( { "path" : fileName } , urlHandler . targetOrigin ) ;
133
133
} else {
134
134
var addressReplacement = ( window . location . protocol == "file:" ) ? null : window . location . protocol + "//" + window . location . host + window . location . pathname . replace ( "index.html" , "" ) + "?p=" + pattern ;
135
- document . getElementById ( "title" ) . innerHTML = "Pattern Lab - " + pattern ;
136
135
history . pushState ( data , null , addressReplacement ) ;
136
+ document . getElementById ( "title" ) . innerHTML = "Pattern Lab - " + pattern ;
137
137
}
138
138
} ,
139
139
@@ -163,8 +163,8 @@ var urlHandler = {
163
163
iFramePath = "styleguide/html/styleguide.html" ;
164
164
}
165
165
166
- document . getElementById ( "title" ) . innerHTML = "Pattern Lab - " + patternName ;
167
166
document . getElementById ( "sg-viewport" ) . contentWindow . postMessage ( { "path" : iFramePath } , urlHandler . targetOrigin ) ;
167
+ document . getElementById ( "title" ) . innerHTML = "Pattern Lab - " + patternName ;
168
168
169
169
if ( wsnConnected ) {
170
170
wsn . send ( '{"url": "' + iFramePath + '", "patternpartial": "' + patternName + '" }' ) ;
You can’t perform that action at this time.
0 commit comments