Skip to content

Commit

Permalink
Merge pull request #536 from JohnThomson/downloadForEditOnDev
Browse files Browse the repository at this point in the history
Allow new download for edit behavior on dev site (BL-13035)
  • Loading branch information
andrew-polk authored Feb 7, 2024
2 parents 5a2198b + bb106cf commit a1091db
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/BookDetail/BookDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ const BookDetail: React.FunctionComponent<IBookDetailProps> = (props) => {
}
};

// This constant lets us keep active some code we don't want to take effect
// until Bloom 5.7 is shipping. I don't want to comment it out because I want
// it to continue to keep up to date. Also, a single line here can just be changed here to enable it.
// The true/false tricks lint into not complaining about unreachable code.
let bloom57IsShipping = true;
bloom57IsShipping = false;
// This should become true or just be removed once 5.7 is shipping.
// The controls it hides require 5.7, so we don't want ordinary users to see them until then.
// We do want to be able to test this on our dev site, though.
const bloom57IsShipping = window.location.hostname.startsWith("dev");

const BookDetailInternal: React.FunctionComponent<{
book: Book;
Expand Down

0 comments on commit a1091db

Please sign in to comment.