Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_startup_css_activation.haml « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b1cce06f47824d0c0ac7d28ec863f76db583941 (plain)
1
2
3
4
5
6
7
- return unless use_startup_css?

= javascript_tag nonce: true do
  :plain
    document.querySelectorAll('link[media="print"]').forEach(linkTag => {
      linkTag.addEventListener('load', function() {this.media='all'}, {once: true});
    })