fix: changing strict equals to just equals to allow string value in widget.version
This commit is contained in:
parent
1c6480586c
commit
96feb94194
@ -46,7 +46,7 @@ export default async function beszelProxyHandler(req, res) {
|
|||||||
if (widget) {
|
if (widget) {
|
||||||
const url = new URL(formatApiCall(widgets[widget.type].api, { endpoint, ...widget }));
|
const url = new URL(formatApiCall(widgets[widget.type].api, { endpoint, ...widget }));
|
||||||
let authEndpointVersion = "authv1";
|
let authEndpointVersion = "authv1";
|
||||||
if (widget.version === 2) authEndpointVersion = "authv2";
|
if (widget.version == 2) authEndpointVersion = "authv2";
|
||||||
const loginUrl = formatApiCall(widgets[widget.type].api, {
|
const loginUrl = formatApiCall(widgets[widget.type].api, {
|
||||||
endpoint: widgets[widget.type].mappings[authEndpointVersion].endpoint,
|
endpoint: widgets[widget.type].mappings[authEndpointVersion].endpoint,
|
||||||
...widget,
|
...widget,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user