Created
March 12, 2019 22:26
-
-
Save isramv/4f4212b47ee3224a324d42d6cb6e7fa8 to your computer and use it in GitHub Desktop.
originally from @arshad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
(function ($) { | |
Drupal.behaviors.dieToolbardie = { | |
attach: function (context) { | |
window.matchMedia('(min-width: 975px)').addListener( function(event) { | |
event.matches ? $('#toolbar-item-administration', context).click() : $('.toolbar-item.is-active', context).click(); | |
}); | |
} | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment