mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove X-UA-Compatible meta tag in all browsers except IE 11
This commit is contained in:
parent
bf0093b56a
commit
9c92ad1f05
2 changed files with 6 additions and 1 deletions
|
|
@ -196,6 +196,12 @@ class HTMLDisplayHandler
|
|||
Context::set('favicon_url', $favicon_url);
|
||||
Context::set('mobicon_url', $mobicon_url);
|
||||
|
||||
// Only print the X-UA-Compatible meta tag if somebody is still using IE
|
||||
if (preg_match('!Trident/7\.0!', $_SERVER['HTTP_USER_AGENT'] ?? ''))
|
||||
{
|
||||
Context::addMetaTag('X-UA-Compatible', 'IE=edge', true);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue