File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ const EasyCoder_Showdown = {
20
20
21
21
run : program => {
22
22
const command = program [ program . pc ] ;
23
- if ( program . isUndefined ( this . showdown_loaded ) ) {
23
+ if ( typeof showdown === `undefined` ) {
24
24
program . require ( `js` , `https://unpkg.com/showdown@1.9.1/./dist/showdown.js` , function ( ) {
25
- this . showdown_loaded = true ;
26
25
EasyCoder_Showdown . setupExtension ( ) ;
27
26
program . run ( command . pc + 1 ) ;
28
27
} ) ;
Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ const EasyCoder_Showdown = {
20
20
21
21
run : program => {
22
22
const command = program [ program . pc ] ;
23
- if ( program . isUndefined ( this . showdown_loaded ) ) {
23
+ if ( typeof showdown === `undefined` ) {
24
24
program . require ( `js` , `https://unpkg.com/showdown@1.9.1/./dist/showdown.js` , function ( ) {
25
- this . showdown_loaded = true ;
26
25
EasyCoder_Showdown . setupExtension ( ) ;
27
26
program . run ( command . pc + 1 ) ;
28
27
} ) ;
You can’t perform that action at this time.
0 commit comments