Browser
isSupported()⇒ boolean
boolean
Validate if browser is supported
reload()
Trigger a reload of the writer based on current hash held internally in the api
getHash()⇒ string
string
Deprecated
getId()⇒ string
string
Get the pathname in the browser location bar.
setHash(hash)⇒ string
string
Deprecated
Parameters
Param | Type | Description |
---|---|---|
hash |
| Required - New hash value to set |
setId(id)⇒ string
string
Set the pathname as id in the browser url.
Parameters
Param | Type | Description |
---|---|---|
id |
| Required - to set |
addExternalScript(scriptSource)⇒ Promise
Promise
Adds a script tag in html document
Parameters
Param | Type | Description |
---|---|---|
scriptSource |
| Required - Script URL |
openInNewWindow()
Open an URL in a new window
Parameters
Param | Description |
---|---|
instructions. | Required - See getUrl |
getUrl(instructions)
Gets an URL from the specific instructions
Parameters
Param | Type | Description |
---|---|---|
instructions |
| Required - |
instructions.url |
| Required - @deprecated. Not used |
instructions.hash |
| Required - @deprecated. Use instructions.pathname instead |
instructions.id |
| Required - Creates an url.href with id as pathname |