consent.get
method takes one callback JavaScript function as an argument that gets called with the Consent Object that is currently stored on the browser. The callback is called once after TrustCommander JavaScript loaded and validated the stored consent.<head>
of a document for AB Testing or personalisation solutions) it is recommended to cache the object in the localStorage
of the browser. In this case it is crucial to implement the consent.onUpdate
method to keep the cached consent in sync.