Compass
Instantiation
To create an instance of Compass, create a new instance of the library.
Example:
school_prefix
The school prefix is a short string used in the URL proceeding compass.education
, for example, pupils from Templestowe College will use tc-vic
.
Settings
The settings objects are one or more flags parsed to the Compass instance.
These flags include (defaults in brackets):
showChrome (false) - Shows puppeteer's chromium instance
pageDelay (2500) - Increases the delay before resolving the promise, you most likely will need to ajust this depending on your network speed
Events
The currently used events are as follows:
'initialized' - called when the Compass-Edu Instance is ready.
'logged-in' - called once the Instance has successfully logged in.
Last updated
Was this helpful?