Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions AudysseyOne.html
Original file line number Diff line number Diff line change
Expand Up @@ -555,19 +555,19 @@ <h2 class="log-heading">System Log:</h2>
throw new Error(`Indices of ${titleKey} are not in order.`);
}
}
const tcResponse = await fetch('http://localhost:4735/eq/house-curve');
if (tcResponse.ok) {
const tcData = await tcResponse.json();
const tcPath =
typeof tcData === 'string'
? tcData
: tcData?.message || tcData?.path || tcData?.file;
if (tcPath) {
console.log(`Applying Target Curve located @ ${tcPath}`);
} else {
throw new Error('Failed to locate target curve! Browse to and select "DrTooleTargetCurve.txt" in "REW / EQ window / House curve.');
}
} else {
const tcResponse = await fetch('http://localhost:4735/eq/house-curve');
if (tcResponse.ok) {
const tcData = await tcResponse.json();
const tcPath =
typeof tcData === 'string'
? tcData
: tcData?.message || tcData?.path || tcData?.file;
if (tcPath) {
console.log(`Applying Target Curve located @ ${tcPath}`);
} else {
throw new Error('Failed to locate target curve! Browse to and select "DrTooleTargetCurve.txt" in "REW / EQ window / House curve.');
}
} else {
throw new Error(`Failed to fetch target curve, please start the API server! HTTP status code: ${tcResponse.status}.`);
}
return (nSpeakers);
Expand Down Expand Up @@ -988,7 +988,7 @@ <h2 class="log-heading">System Log:</h2>
const warningEntry = `${new Date().toLocaleTimeString()} [INFO] ${warningMessage}\n`;
logContainer.textContent += warningEntry;
scrollToBottom();
originalWarn.apply(console, args);
originalInfo.apply(console, args);
};
const originalLog = console.log;
console.log = function (...args) {
Expand All @@ -1009,4 +1009,4 @@ <h2 class="log-heading">System Log:</h2>
})();

</script>
</body></html>
</body></html>