Skip to content

Commit

Permalink
New style for group lists #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Waschnick committed Mar 8, 2018
1 parent 716df7c commit 26c9e7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scripts/company-list/oil.company.list.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const companyListSnippet = (companyList) => {
};

function attachCssToHtmlAndDocument() {
let isMobile = window.matchMedia("(max-width: 600px)");
if (isMobile.matches) {
if (window.matchMedia && window.matchMedia("(max-width: 600px)").matches) {
window.oilCache = {
documentElementStyle: document.documentElement.getAttribute('style'),
bodyStyle: document.body.getAttribute('style'),
Expand Down

0 comments on commit 26c9e7d

Please sign in to comment.