Skip to content
Snippets Groups Projects

fix wrong check for ipad (remove import and fullscreen buttons for ipad)

Merged Tjark Wilhelm Hoeck requested to merge removeImportAndFullscreenForIpad into staging
Compare and
6 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -46,13 +46,13 @@ Template.hashtagView.onRendered(function () {
Template.hashtagManagement.onRendered(function () {
footerElements.removeFooterElements();
footerElements.addFooterElement(footerElements.footerElemHome);
if (navigator.userAgent.match(/iPad/i) != null) {
if (navigator.userAgent.match(/iPad/i) == null) {
footerElements.addFooterElement(footerElements.footerElemImport);
}
footerElements.addFooterElement(footerElements.footerElemAbout);
footerElements.addFooterElement(footerElements.footerElemTranslation);
footerElements.addFooterElement(footerElements.footerElemTheme);
if (navigator.userAgent.match(/iPad/i) != null) {
if (navigator.userAgent.match(/iPad/i) == null) {
footerElements.addFooterElement(footerElements.footerElemFullscreen);
}
footerElements.calculateFooter();