mirror of
https://github.com/webmin/webmin.git
synced 2026-09-13 17:10:38 +01:00
Added javascript detection function
This commit is contained in:
@@ -6476,6 +6476,16 @@ close(TOUCH);
|
||||
return $cfile;
|
||||
}
|
||||
|
||||
# supports_javascript()
|
||||
# Returns 1 if the current browser is assumed to support javascript
|
||||
sub supports_javascript
|
||||
{
|
||||
if (defined(&theme_supports_javascript)) {
|
||||
return &theme_supports_javascript();
|
||||
}
|
||||
return $ENV{'MOBILE_DEVICE'} ? 0 : 1;
|
||||
}
|
||||
|
||||
$done_web_lib_funcs = 1;
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user