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 @@ -97,7 +97,7 @@ $.fn.viewSourceCode = function() {
9797 if ( $ ( this ) . is ( "[data-demo-js]" ) ) {
9898 var scriptId = $ ( this ) . attr ( "data-demo-js" ) ;
9999
100- if ( scriptId === true ) {
100+ if ( scriptId === " true" ) {
101101 scriptId = "" ;
102102 }
103103 js = $ ( "<div></div>" ) . append ( $ ( "head" ) . find ( "script" + scriptId ) . contents ( ) . clone ( ) ) . html ( ) ;
@@ -110,7 +110,7 @@ $.fn.viewSourceCode = function() {
110110 if ( $ ( this ) . is ( "[data-demo-css]" ) ) {
111111 var styleId = $ ( this ) . attr ( "data-demo-css" ) ;
112112
113- if ( styleId === true ) {
113+ if ( styleId === " true" ) {
114114 styleId = "" ;
115115 }
116116 css = $ ( "<div></div>" ) . append ( $ ( "head" ) . find ( "style" + styleId ) . contents ( ) . clone ( ) ) . html ( ) ;
You can’t perform that action at this time.
0 commit comments