Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7664bcb

Browse files
committed
Fix internal error bug
1 parent 2809fed commit 7664bcb

File tree

1 file changed

+1
-1
lines changed
  • src/client/app/modules/components

1 file changed

+1
-1
lines changed

src/client/app/modules/components/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class App extends React.Component {
1212
hash = hash.substring(2);
1313

1414
var splitResults = hash.split(/\/\//);
15-
if (splitResults.length <= 0 || splitResults.length > 2) return;
15+
if (splitResults.length <= 0 || splitResults[0] == '' || splitResults.length > 2) return;
1616
this.props.updateFileUrl(splitResults[0], parseInt(splitResults[1], 10) || 0);
1717
this.props.toggleCodeView(true);
1818
this.props.toggleSearchView(false);

0 commit comments

Comments
 (0)