X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4bf43ab9d4e6b724836724c1d514760d164df79a..f7fac26c91a2efbb77b243ffd20e89e992ea1f71:/Plugson/www/index.html diff --git a/Plugson/www/index.html b/Plugson/www/index.html index 66cc32c..9037a94 100644 --- a/Plugson/www/index.html +++ b/Plugson/www/index.html @@ -723,7 +723,7 @@ @@ -777,6 +777,7 @@ //Main process var m_syntax_error; + var m_invalid_config; callVtoySync({ method : 'sysinfo' }, function(data) { @@ -784,6 +785,7 @@ g_current_dir = data.curdir; g_current_os = data.os; m_syntax_error = data.syntax_error; + m_invalid_config = data.invalid_config; @@ -833,6 +835,14 @@ }); m_syntax_error = 0; } + + if (m_invalid_config === 1 && typeof(Modal) === 'object') { + var title = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_INFO : g_vtoy_cur_language_cn.STR_INFO; + var msg = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_INVALID_CONFIG_TIP : g_vtoy_cur_language_cn.STR_INVALID_CONFIG_TIP; + Modal.alert({title:title,msg:msg}).on(function(e) { + }); + m_invalid_config = 0; + } setTimeout(function() { ventoy_handshake();