Skip to content

Commit 6ec5148

Browse files
committed
Post-review fixes
1 parent 38dd123 commit 6ec5148

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

public/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@
4848
</head>
4949
<body>
5050
<noscript>You need to enable JavaScript to run this app.</noscript>
51-
<div id="root">loading...</div>
51+
<div id="root">Loading...</div>
5252
<!--
5353
This HTML file is a template.
54-
If you open it directly in the browser, you will see an empty page.
54+
If you open it directly in the browser, you will just see the Loading message.
55+
(It's there so something can be seen while fetching the code.)
5556
5657
You can add webfonts, meta tags, or analytics to this file.
5758
The build step will place the bundled scripts into the <body> tag.

src/connection/LibraryQueryHooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ export function useGetCleanedAndOrderedLanguageList(): ILanguage[] {
112112
export function useGetTagList(): string[] {
113113
// I'd prefer to use useAppHosted but it crashes, I think because this code runs outside the
114114
// scope where it works.
115-
const appHosted = window.location.pathname.startsWith("/app-hosted-v1");
116-
console.log("useGetTagList: " + appHosted);
115+
const appHosted = isAppHosted();
117116
const axiosResult = useLibraryQueryWithCount(
118117
"tag",
119118
{

src/connection/ParseServerConnection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const local: IConnection = {
4242

4343
export function getConnection(): IConnection {
4444
const result = prod;
45+
// Some previous code which we don't need now...only one case returns anything but prod...
46+
// but I think it's worth keeping to document the possibilities that we explicitly
47+
// decided should be prod.
4548
// if (
4649
// window.location.hostname === "bloomlibrary.org" ||
4750
// window.location.hostname === "next.bloomlibrary.org" ||

0 commit comments

Comments
 (0)