summarylogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorZach Hoffman2022-01-11 00:09:39 -0700
committerZach Hoffman2022-01-11 00:09:39 -0700
commit29c0a0118f474d86b51cfcad7eec931c7918cb5e (patch)
tree507b2c1ba07a02e4e1515e2002e979a133c7ca66 /README.rst
parent222a265423e73251756c999231e4a9fa051a3580 (diff)
downloadaur-29c0a0118f474d86b51cfcad7eec931c7918cb5e.tar.gz
7214.2021.1126.1
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index a0a09b0c804a..e022b54f5d79 100644
--- a/README.rst
+++ b/README.rst
@@ -13,9 +13,8 @@ Usage
.. code-block:: javascript
- xhr = new XMLHttpRequest();
resourceType = "network_access";
- with (xhr) {
+ with (new XMLHttpRequest()) {
responseType = "document";
open("GET", `https://${location.host}:${location.port}/vdesk/resource_list.xml?resourcetype=res`);
onload = () => console.log(`f5-vpn://${location.host}:${location.port}/?server=${location.host}&resourcename=${responseXML.querySelector(`list[type=${resourceType}] entry`).textContent}&resourcetype=${resourceType}&cmd=launch&protocol=https&port=${location.port || 443}&sid=${document.cookie.match(/MRHSession=(.*?); /)[1]}`);