TabCounter

Viki. TabCounter

Keeps track of how many tabs a user has open at one time

Constructor

new TabCounter(options)

Source:
Parameters:
Name Type Description
options Object
Properties
Name Type Description
getCount function callback to retrieve current tab count
saveCount(n) function callback to update tab count. Should take in a number.

Methods

getCount() → {Number}

Source:
Returns:
number of tabs open
Type
Number

saveCount(count)

Source:
Parameters:
Name Type Description
count Number number of tabs to save count