Open NghiaTranUIT opened 1 year ago
Some users complain that this script can't work:
async function onRequest(context, url, request) { console.log(url); const urlItem = new URL("https://example.com?foo=1&bar=2"); const params1 = new URLSearchParams(urlItem.search); // Done return request; }
and get the following error:
Error: ReferenceError: Can't find variable: URL Error: ReferenceError: Can't find variable: URLSearchParams
The problem is:
URL
URLSearchParams
Beta: https://download.proxyman.io/beta/Proxyman_4.12.0_Support_URL_and_URLSearchParams_for_Scripting_Tool.dmg
Description
Some users complain that this script can't work:
and get the following error:
The problem is:
URL
andURLSearchParams
are not natively supported by JavascriptCore framework.Why this feature/change is important?