[UI] reverted bad testing tweak
This commit is contained in:
@@ -50,13 +50,13 @@ namespace {
|
|||||||
bool agentIsMobile()
|
bool agentIsMobile()
|
||||||
{
|
{
|
||||||
const Wt::WEnvironment& env = Wt::WApplication::instance()->environment();
|
const Wt::WEnvironment& env = Wt::WApplication::instance()->environment();
|
||||||
return true;
|
|
||||||
return (env.agentIsIEMobile()
|
return (env.agentIsIEMobile()
|
||||||
|| env.agentIsMobileWebKit()
|
|| env.agentIsMobileWebKit()
|
||||||
|| env.userAgent().find("Mobile") != std::string::npos // Workaround for firefox
|
|| env.userAgent().find("Mobile") != std::string::npos // Workaround for firefox
|
||||||
|| env.userAgent().find("Tablet") != std::string::npos // Workaround for firefox
|
|| env.userAgent().find("Tablet") != std::string::npos // Workaround for firefox
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user