Skip to content

Commit

Permalink
Flip the default for OpenGrok automatic redirects to true
Browse files Browse the repository at this point in the history
  • Loading branch information
isker committed Jan 8, 2024
1 parent 698e67d commit 62a7326
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-tools-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"neogrok": minor
---

Flip the default for OpenGrok automatic redirects to `true`
8 changes: 4 additions & 4 deletions src/lib/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ const fileMatchesCutoffFromString = (x: string) => {
};

/**
* Whether the user has opted to bypass explanatory OpenGrok compatibility pages
* by way of instantly redirecting requests for OpenGrok compatibility URLs to
* their neogrok equivalents where possible.
* Whether to bypass explanatory OpenGrok compatibility pages by way of
* instantly redirecting requests for OpenGrok compatibility URLs to their
* neogrok equivalents where possible.
*/
export type OpenGrokInstantRedirect = boolean;
const openGrokInstantRedirectKey = "openGrokInstantRedirect";
const defaultOpenGrokInstantRedirect = false;
const defaultOpenGrokInstantRedirect = true;
const openGrokInstantRedirectFromString = (x: string) => x === "true";

export type Preferences = {
Expand Down

0 comments on commit 62a7326

Please sign in to comment.