@getsupertab/supertab-browser
v8.1.2
Published
Supertab Browser SDK.
Downloads
209
Readme
supertab-browser
Supertab Browser SDK.
Installation
npm install @getsupertab/supertab-browser
Usage
The supertab-browser instance can be initialized in two ways:
1. Using window
global variables
window.SupertabInit(options); // will be available as window.Supertab
console.log(await window.Supertab.getApiVersion()); // will print the version of the API
2. Using Supertab
class
const client = new Supertab(options); // will return a Supertab instance
console.log(await client.getApiVersion()); // will print the version of the API