allow dynamic variables in js files

This commit is contained in:
Bogdan Pilyugin 2023-03-16 15:39:31 +02:00
parent 5b3fbbba7f
commit 6cf7f4e4a9
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39
Subproject commit 03ff681a61cb03a43c6f008601a6e6090e9df2bd

View File

@ -355,7 +355,7 @@ static esp_err_t GETHandler(httpd_req_t *req)
}
//check if the file can contains dynamic variables
if (IS_FILE_EXT(filename, ".html") || IS_FILE_EXT(filename, ".json"))
if (IS_FILE_EXT(filename, ".html") || IS_FILE_EXT(filename, ".json") || IS_FILE_EXT(filename, ".js"))
isDynamicVars = true;
do
{