File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function getStylesFromIframe(iframe) {
121121 return cssText ;
122122}
123123
124- var isRegistred = false ;
124+ var isRegistered = false ;
125125
126126module . exports = function ( ) {
127127 var codepens = document . querySelectorAll ( 'div.codepen' ) ;
@@ -135,7 +135,7 @@ module.exports = function() {
135135 }
136136 } ) ;
137137
138- if ( ! isRegistred ) {
138+ if ( ! isRegistered ) {
139139 //Register PrismJS "Run" custom button
140140 Prism . plugins . toolbar . registerButton ( "run-code" , function ( env ) {
141141 var demoWrapper = findDemoWrapper ( env . element ) ;
@@ -146,6 +146,7 @@ module.exports = function() {
146146 var btn = document . createElement ( "button" ) ;
147147 btn . innerHTML = "Run" ;
148148 btn . setAttribute ( "data-run" , "" ) ;
149+ isRegistered = true ;
149150 return btn ;
150151 }
151152 } ) ;
You can’t perform that action at this time.
0 commit comments