[UI] reverted bad testing tweak

This commit is contained in:
emeric
2015-04-06 17:56:55 +02:00
parent 49b37d34e0
commit 5dfff28867
+1 -1
View File
@@ -50,13 +50,13 @@ namespace {
bool agentIsMobile()
{
const Wt::WEnvironment& env = Wt::WApplication::instance()->environment();
return true;
return (env.agentIsIEMobile()
|| env.agentIsMobileWebKit()
|| env.userAgent().find("Mobile") != std::string::npos // Workaround for firefox
|| env.userAgent().find("Tablet") != std::string::npos // Workaround for firefox
);
}
}