Log a warning in the UI when falling back to default connection parameters
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
export const environment = new class {
|
||||
readonly supportHub = "https://support.safing.io"
|
||||
readonly production = true;
|
||||
|
||||
get httpAPI() {
|
||||
return `http://${window.location.host}/api`
|
||||
}
|
||||
|
||||
get portAPI() {
|
||||
const result = `ws://${window.location.host}/api/database/v1`;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
export const environment = {
|
||||
production: true,
|
||||
portAPI: `ws://${window.location.host}/api/database/v1`,
|
||||
httpAPI: `http://${window.location.host}/api`,
|
||||
supportHub: "https://support.safing.io"
|
||||
};
|
||||
@@ -76,12 +76,13 @@ if (location.pathname !== "/prompt") {
|
||||
|
||||
} else {
|
||||
// bootstrap the prompt interface
|
||||
console.log("[INFO] Bootstrapping prompt entry point.");
|
||||
bootstrapApplication(PromptEntryPointComponent, {
|
||||
providers: [
|
||||
provideHttpClient(),
|
||||
importProvidersFrom(PortmasterAPIModule.forRoot({
|
||||
websocketAPI: "ws://127.0.0.1:817/api/database/v1",
|
||||
httpAPI: "http://127.0.0.1:817/api"
|
||||
websocketAPI: "ws://localhost:817/api/database/v1",
|
||||
httpAPI: "http://localhost:817/api"
|
||||
})),
|
||||
NotificationsService,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user