File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default class Flavor extends EventDispatcher {
33
33
}
34
34
35
35
set value ( id ) {
36
- let profile = profiles [ id || "js" ] ;
36
+ let profile = profiles [ id . toLowerCase ( ) || "js" ] ;
37
37
if ( ! profile || profile === this . _profile ) { return ; }
38
38
Track . page ( "flavor/" + id ) ;
39
39
this . _profile = profile ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export default class RegExr extends EventDispatcher {
59
59
this . _savedHash = null ;
60
60
61
61
let params = Utils . getUrlParams ( ) ;
62
+ if ( params . engine ) { this . flavor . value = params . engine ; }
62
63
if ( params . expression ) { this . expression . value = params . expression ; }
63
64
if ( params . text ) { this . text . value = params . text ; }
64
65
if ( params . tool ) { this . tools . value = { id :params . tool , input :params . input } ; }
You can’t perform that action at this time.
0 commit comments