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