diff --git a/plugin/PlayerSkins/allowAutoplay/index.php b/plugin/PlayerSkins/allowAutoplay/index.php index 9199e9b42..daf04df05 100644 --- a/plugin/PlayerSkins/allowAutoplay/index.php +++ b/plugin/PlayerSkins/allowAutoplay/index.php @@ -1,17 +1,18 @@ isMobile() && !$detect->isTablet()) { - if ($detect->is('Chrome')) { + $browser = get_browser_name(); + if ($browser == ('Chrome')) { include $global['systemRootPath'] . 'plugin/PlayerSkins/allowAutoplay/chrome.php'; - } else if ($detect->is('Safari')) { + } else if ($browser == ('Safari')) { include $global['systemRootPath'] . 'plugin/PlayerSkins/allowAutoplay/safari.php'; - } else if ($detect->is('Firefox')) { + } else if ($browser == ('Firefox')) { include $global['systemRootPath'] . 'plugin/PlayerSkins/allowAutoplay/firefox.php'; - } else { + } else {echo "Nao sei"; include $global['systemRootPath'] . 'plugin/PlayerSkins/allowAutoplay/chrome.php'; } } \ No newline at end of file