Skip to content

Commit 275be92

Browse files
committed
Add engine query string param
1 parent 643fdcc commit 275be92

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dev/src/Flavor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class Flavor extends EventDispatcher {
3333
}
3434

3535
set value(id) {
36-
let profile = profiles[id || "js"];
36+
let profile = profiles[id.toLowerCase() || "js"];
3737
if (!profile || profile === this._profile) { return; }
3838
Track.page("flavor/"+id);
3939
this._profile = profile;

dev/src/RegExr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export default class RegExr extends EventDispatcher {
5959
this._savedHash = null;
6060

6161
let params = Utils.getUrlParams();
62+
if (params.engine) { this.flavor.value = params.engine; }
6263
if (params.expression) { this.expression.value = params.expression; }
6364
if (params.text) { this.text.value = params.text; }
6465
if (params.tool) { this.tools.value = {id:params.tool, input:params.input}; }

0 commit comments

Comments
 (0)