I can execute this function in Javascript Well.
async function getIP() { try {
const res = await fetch('https://api.ipify.org?format=json');;)
const jsonObj = (res.json()).then(data => document.write(data.ip));
} catch (err) {
console.error(err);
}}
When i execute with
:function_ouput := web.javascript_eval_function('async function getIP() { try {
const res = await fetch("https://api.ipify.org?format=json");;)
const jsonObj = (res.json()).then(data => document.write(data.ip));
} catch (err) {
console.error(err);
}}
');
it did not give any result. not any response. How could i write it to run with web.javascript_eval_function