Skip to content

Commit d33743b

Browse files
authored
Merge pull request #273 from georgejhunt/ie11
IE 11 does not have string.includes()
2 parents 2286409 + e62b77d commit d33743b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/js-menu/files/menu-files/js/js-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function procStatic(){
228228
}
229229

230230
function procMenu() {
231-
if (isMobile || navigator.userAgent.includes('Win64') || navigator.platform == 'MacIntel') {
231+
if (isMobile || navigator.userAgent.search('Win64') !== -1 || navigator.platform == 'MacIntel') {
232232
var allowed = menuConfig.apache_allow_sudo || false;
233233
var desired = menuParams.allow_server_time_update || false;
234234
if (allowed && desired)

0 commit comments

Comments
 (0)