Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 610 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 610 Bytes

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