We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9fd68 commit 3b601b5Copy full SHA for 3b601b5
src/main/webapp/js/addrole.js
@@ -107,14 +107,5 @@ const sendPostRequest = (postUrl, json) => {
107
}
108
};
109
110
- // this is really bad.
111
- // See https://github.com/jenkinsci/jenkins/blob/75468da366c1d257a51655dcbe952d55b8aeeb9c/war/src/main/js/util/jenkins.js#L22
112
- const oldPrototype = Array.prototype.toJSON;
113
- delete Array.prototype.toJSON;
114
-
115
- try {
116
- xhr.send(JSON.stringify(json));
117
- } finally {
118
- Array.prototype.toJSON = oldPrototype;
119
- }
+ xhr.send(JSON.stringify(json));
120
0 commit comments