Every line of '.responsetext' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
98 get responseText() { 99 if (this._responseType !== '' && this._responseType !== 'text') { 100 throw new Error( 101 "The 'responseText' property is only available if 'responseType' " + 102 `is set to '' or 'text', but it is '${this._responseType}'.` 103 ); 104 } 105 if (this.readyState < LOADING) { 106 return ''; 107 } 108 return this._response; 109 }