File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function getStylesFromIframe(iframe) {
121
121
return cssText ;
122
122
}
123
123
124
- var isRegistred = false ;
124
+ var isRegistered = false ;
125
125
126
126
module . exports = function ( ) {
127
127
var codepens = document . querySelectorAll ( 'div.codepen' ) ;
@@ -135,7 +135,7 @@ module.exports = function() {
135
135
}
136
136
} ) ;
137
137
138
- if ( ! isRegistred ) {
138
+ if ( ! isRegistered ) {
139
139
//Register PrismJS "Run" custom button
140
140
Prism . plugins . toolbar . registerButton ( "run-code" , function ( env ) {
141
141
var demoWrapper = findDemoWrapper ( env . element ) ;
@@ -146,6 +146,7 @@ module.exports = function() {
146
146
var btn = document . createElement ( "button" ) ;
147
147
btn . innerHTML = "Run" ;
148
148
btn . setAttribute ( "data-run" , "" ) ;
149
+ isRegistered = true ;
149
150
return btn ;
150
151
}
151
152
} ) ;
You can’t perform that action at this time.
0 commit comments