Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 89bca90

Browse files
committed
can use either c or code for the view param
1 parent 07905fa commit 89bca90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/styleguide/js/code-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var codeViewer = {
4848

4949
// load the query strings in case code view has to show by default
5050
var queryStringVars = urlHandler.getRequestVars();
51-
if ((queryStringVars.view !== undefined) && (queryStringVars.view === "code")) {
51+
if ((queryStringVars.view !== undefined) && ((queryStringVars.view === "code") || (queryStringVars.view === "c"))) {
5252
codeViewer.copyOnInit = ((queryStringVars.copy !== undefined) && (queryStringVars.copy === "true")) ? true : false;
5353
codeViewer.openCode();
5454
}

0 commit comments

Comments
 (0)