Skip to content

Commit d740e81

Browse files
committed
whitespace
1 parent cc6098c commit d740e81

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

renderer.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,21 @@ async function get_trx() {
152152

153153
async function getInfo(which) {
154154
const response = await fetch(
155-
"http://"+$("#flrig_host").val()+':'+$("#flrig_port").val(),
156-
{
155+
"http://"+$("#flrig_host").val()+':'+$("#flrig_port").val(), {
157156
method: 'POST',
158157
// mode: 'no-cors',
159-
headers: {
160-
'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
161-
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
162-
},
163-
body: '<?xml version="1.0"?><methodCall><methodName>'+which+'</methodName></methodCall>'
164-
});
165-
const data = await response.text();
158+
headers: {
159+
'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
160+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
161+
},
162+
body: '<?xml version="1.0"?><methodCall><methodName>'+which+'</methodName></methodCall>'
163+
}
164+
);
165+
const data = await response.text();
166166
var parser = new DOMParser();
167-
var xmlDoc = parser.parseFromString(data, "text/xml");
168-
var qrgplain = xmlDoc.getElementsByTagName("value")[0].textContent;
169-
return qrgplain;
167+
var xmlDoc = parser.parseFromString(data, "text/xml");
168+
var qrgplain = xmlDoc.getElementsByTagName("value")[0].textContent;
169+
return qrgplain;
170170
}
171171

172172
async function getsettrx() {

0 commit comments

Comments
 (0)