require environment variable to be injected for security reasons.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-04 11:57:27 -07:00
parent 5cdc687f6d
commit c1b361397f
3 changed files with 29 additions and 8 deletions

View File

@@ -401,8 +401,12 @@ function showCustomWidgets() {
}).then(function (result) {
if (result.isConfirmed) {
$.get('/Home/GetCustomWidgetEditor', function (data) {
$("#customWidgetModalContent").html(data);
$("#customWidgetModal").modal('show');
if (data.trim() != '') {
$("#customWidgetModalContent").html(data);
$("#customWidgetModal").modal('show');
} else {
errorToast("Custom Widgets Not Enabled");
}
});
}
});