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

@rails+ujs+7.0.8.patch « patches - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65a4eb029b8d818d12828e9225da524963197956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
index d428163..010eaa5 100644
--- a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
+++ b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
@@ -281,11 +281,6 @@ Released under the MIT license
             try {
               response = JSON.parse(response);
             } catch (error) {}
-          } else if (type.match(/\b(?:java|ecma)script\b/)) {
-            script = document.createElement('script');
-            script.setAttribute('nonce', cspNonce());
-            script.text = response;
-            document.head.appendChild(script).parentNode.removeChild(script);
           } else if (type.match(/\b(xml|html|svg)\b/)) {
             parser = new DOMParser();
             type = type.replace(/;.+/, '');