proper undefined check
parent
889ad4ab10
commit
e78ed5e163
|
|
@ -1,6 +1,6 @@
|
||||||
import * as configFunctions from '../../helpers/functions.config.js';
|
import * as configFunctions from '../../helpers/functions.config.js';
|
||||||
export function handler(_request, response) {
|
export function handler(_request, response) {
|
||||||
if (!configFunctions.getProperty('application.ntfyStartup')) {
|
if (configFunctions.getProperty('application.ntfyStartup') === undefined) {
|
||||||
response.redirect(configFunctions.getProperty('reverseProxy.urlPrefix') +
|
response.redirect(configFunctions.getProperty('reverseProxy.urlPrefix') +
|
||||||
'/dashboard/?error=ntfyNotConfigured');
|
'/dashboard/?error=ntfyNotConfigured');
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import type { Request, Response } from 'express'
|
||||||
import * as configFunctions from '../../helpers/functions.config.js'
|
import * as configFunctions from '../../helpers/functions.config.js'
|
||||||
|
|
||||||
export function handler(_request: Request, response: Response): void {
|
export function handler(_request: Request, response: Response): void {
|
||||||
if (!configFunctions.getProperty('application.ntfyStartup')) {
|
if (configFunctions.getProperty('application.ntfyStartup') === undefined) {
|
||||||
response.redirect(
|
response.redirect(
|
||||||
configFunctions.getProperty('reverseProxy.urlPrefix') +
|
configFunctions.getProperty('reverseProxy.urlPrefix') +
|
||||||
'/dashboard/?error=ntfyNotConfigured'
|
'/dashboard/?error=ntfyNotConfigured'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue