Skip to content

Commit 6c6b441

Browse files
committed
Cs fixes
1 parent ec6fa53 commit 6c6b441

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/client.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<script>
55
var xhttp = new XMLHttpRequest();
66
xhttp.onreadystatechange = function() {
7-
if (this.readyState == 4 && this.status == 200) {
8-
console.log(this.responseText);
9-
jsonObject = php_crud_api_transform(JSON.parse(this.responseText));
10-
document.getElementById('output').innerHTML = JSON.stringify(jsonObject, undefined, 4);
11-
}
7+
if (this.readyState == 4 && this.status == 200) {
8+
console.log(this.responseText);
9+
jsonObject = php_crud_api_transform(JSON.parse(this.responseText));
10+
document.getElementById('output').innerHTML = JSON.stringify(jsonObject, undefined, 4);
11+
}
1212
};
1313
xhttp.open("GET", "http://localhost/api.php/posts?include=categories,tags,comments&filter=id,eq,1", true);
1414
xhttp.send();
@@ -18,3 +18,4 @@
1818
<pre id="output"></pre>
1919
</body>
2020
</html>
21+

0 commit comments

Comments
 (0)