Web pages can use the Qworum capabilities of web browsers through this JavaScript class.
These are the main methods that web pages use:
eval()
evaluates a Qworum script.setData()
sets the value of a data container.getData()
reads the value of a data container.
Other methods:
checkAvailability()
verifies that Qworum is available on the user's web browser.
All these methods are asynchronous.
Checks that:
- the Qworum browser extension is installed and running, and
- the website's origin is part of Qworum's Service Web.
eval(script)
Evaluates a Qworum script.
The outcome is one of:
- Redirection to a new URL (the current Qworum session continues).
- Closing of the browser tab after displaying an alert window (the current Qworum session has terminated).
getData(path)
Reads a value contained in a data container.
setData(path,value,)
Sets the value contained in a data container.