|
14 | 14 | <link rel="preload" href="https://assets.ubuntu.com/v1/9689339a-snapcraft-hero-background--light.png" as="image"> |
15 | 15 |
|
16 | 16 | <!-- Google Tag Manager --> |
17 | | - <script nonce="{{ CSP_NONCE }}">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
| 17 | + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
18 | 18 | new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
19 | 19 | j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
20 | | - 'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]'); |
21 | | - n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f); |
| 20 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
22 | 21 | })(window,document,'script','dataLayer','GTM-KCGXHQS');</script> |
23 | 22 | <!-- End Google Tag Manager --> |
24 | 23 |
|
25 | 24 | {{ vite_import('static/sass/styles.scss') }} |
26 | 25 |
|
27 | 26 | {{ vite_import('static/js/base/base.ts') }} |
28 | 27 | {% block scripts_includes %}{% endblock %} |
29 | | - <script src="https://assets.ubuntu.com/v1/703e23c9-lazysizes+noscript+native-loading.5.1.2.min.js" defer nonce="{{ CSP_NONCE }}"></script> |
| 28 | + <script src="https://assets.ubuntu.com/v1/703e23c9-lazysizes+noscript+native-loading.5.1.2.min.js" defer></script> |
30 | 29 |
|
31 | 30 | <meta name="description" content="{% block meta_description %}Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. And because they bundle their dependencies, they work on all major Linux systems without modification.{% endblock %}"> |
32 | 31 | <meta name="copydoc" content="{% block meta_copydoc %}{% endblock %}"> |
|
81 | 80 |
|
82 | 81 | {% block scripts %}{% endblock %} |
83 | 82 |
|
84 | | - <script nonce="{{ CSP_NONCE }}"> |
| 83 | + <script> |
85 | 84 | window.COMMIT_ID = "{{ COMMIT_ID }}"; |
86 | 85 | window.ENVIRONMENT = "{{ ENVIRONMENT }}"; |
87 | 86 | window.SENTRY_DSN = "{{ SENTRY_DSN }}"; |
88 | 87 | window.ANALYTICS_ENDPOINT = "{{ ANALYTICS_ENDPOINT }}"; |
89 | 88 | </script> |
90 | 89 |
|
91 | | - <script type="application/ld+json" nonce="{{ CSP_NONCE }}"> |
| 90 | + <script type="application/ld+json"> |
92 | 91 | { |
93 | 92 | "@context": "http://schema.org/", |
94 | 93 | "@id": "https://snapcraft.io/#organization", |
|
107 | 106 | } |
108 | 107 | </script> |
109 | 108 |
|
110 | | - <script type="application/ld+json" nonce="{{ CSP_NONCE }}"> |
| 109 | + <script type="application/ld+json"> |
111 | 110 | { |
112 | 111 | "@context": "http://schema.org", |
113 | 112 | "@id": "https://snapcraft.io/#website", |
|
0 commit comments