contao-community-alliance / merger2

The Merger² for Contao.
GNU Lesser General Public License v3.0
8 stars 5 forks source link

Do not use mobile detect bundle anymore #41

Closed dmolineus closed 4 years ago

dmolineus commented 4 years ago

The mobile detect bundle provides a cookie based method to switch the view. It's not required, because Contao provides it's own method. And for cache optimization the extra cookie should not be set.

As it's not possible to disable the cookie in the bundle, we use the mobile detect library directly. If someone required the mobile detect bundle one should have required it self, so it can be safely removed as dependencies in a feature release.