Skip to content

Commit

Permalink
Fix default parser loading on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
fkling committed Dec 9, 2015
1 parent 26791b8 commit ec81ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.js
Expand Up @@ -52,7 +52,8 @@ class App extends React.Component {
transformCode: initialTransformCode,
} = this._getDataFromRevision(revision))
} else {
parser = getParserByID(LocalStorage.getParser()) || getDefaultParser();
parser = getParserByID(LocalStorage.getParser()) ||
getDefaultParser(getCategoryByID(LocalStorage.getCategory()));
initialCode = this._getDefaultCode(parser);
}

Expand Down

0 comments on commit ec81ced

Please sign in to comment.