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() {
97
97
if ( $ ( this ) . is ( "[data-demo-js]" ) ) {
98
98
var scriptId = $ ( this ) . attr ( "data-demo-js" ) ;
99
99
100
- if ( scriptId === true ) {
100
+ if ( scriptId === " true" ) {
101
101
scriptId = "" ;
102
102
}
103
103
js = $ ( "<div></div>" ) . append ( $ ( "head" ) . find ( "script" + scriptId ) . contents ( ) . clone ( ) ) . html ( ) ;
@@ -110,7 +110,7 @@ $.fn.viewSourceCode = function() {
110
110
if ( $ ( this ) . is ( "[data-demo-css]" ) ) {
111
111
var styleId = $ ( this ) . attr ( "data-demo-css" ) ;
112
112
113
- if ( styleId === true ) {
113
+ if ( styleId === " true" ) {
114
114
styleId = "" ;
115
115
}
116
116
css = $ ( "<div></div>" ) . append ( $ ( "head" ) . find ( "style" + styleId ) . contents ( ) . clone ( ) ) . html ( ) ;
You can’t perform that action at this time.
0 commit comments