Skip to content

Commit

Permalink
use version 2 of compiler in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Apr 22, 2019
1 parent 8aad909 commit b78ad0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/repl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ <h2 class='show-if-mobile'>data.json5</h2>
return {
examples,

version: query.version || 'latest',
version: query.version || '2',

components: [],
data: {},
Expand Down Expand Up @@ -277,7 +277,7 @@ <h2 class='show-if-mobile'>data.json5</h2>

url: ({ version, gist, query, demo }) => {
const params = [];
if (version !== 'latest') params.push(`version=${version}`);
if (version !== '2') params.push(`version=${version}`);
if (gist) params.push(`gist=${gist.id}`);
else if (demo) params.push(`demo=${demo}`);
else if (query.gist) params.push(`gist=${query.gist}`);
Expand Down

0 comments on commit b78ad0f

Please sign in to comment.