1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-11-27 23:03:16 +00:00
This commit is contained in:
Mike Burton
2025-11-20 07:21:44 -08:00
parent af53137b55
commit 73c3a97cf8
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,9 @@
#include <umm_malloc/umm_heap_select.h>
#endif
// Optional user-defined JavaScript to be included in the UI.
// Served at /js/custom.js, which is automatically included in index.htm.
// js: JavaScript code as a C-string. Must remain valid for the lifetime of the ESPUIClass instance.
static const char* customJS = nullptr;
// Set custom JavaScript to be included in the UI.

View File

@@ -203,6 +203,7 @@ public:
// Set optional user-defined JavaScript to be included in the UI.
// js: JavaScript code as a C-string. Must remain valid for the lifetime of the ESPUIClass instance.
// This is intentionally not a String to avoid dynamic memory allocation.
void setCustomJS(const char* js);
// Variables