File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,8 @@ if (location.search) {
97
97
}
98
98
99
99
const params = new URLSearchParams ( location . search ) ;
100
- window . codeHtml = params . get ( 'html' )
101
- ? decodeURIComponent ( params . get ( 'html' ) )
102
- : '' ;
103
- window . codeCss = params . get ( 'css' )
104
- ? decodeURIComponent ( params . get ( 'css' ) )
105
- : '' ;
100
+ window . codeHtml = params . get ( 'html' ) || '' ;
101
+ window . codeCss = params . get ( 'css' ) || '' ;
106
102
}
107
103
108
104
export default class App extends Component {
@@ -236,6 +232,8 @@ export default class App extends Component {
236
232
db . getSettings ( this . defaultSettings ) . then ( result => {
237
233
if ( window . codeHtml || window . codeCss ) {
238
234
log ( 'Load item from query params' , lastCode ) ;
235
+ this . prettifyHandler ( 'html' ) ;
236
+ this . prettifyHandler ( 'css' ) ;
239
237
this . setCurrentItem ( this . state . currentItem ) . then ( ( ) => {
240
238
this . refreshEditor ( ) ;
241
239
} ) ;
You can’t perform that action at this time.
0 commit comments