summarylogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
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]}`);