moderator-toolbox-nxg-for-reddit / framework/loadConditions
framework/loadConditions¶
Functions¶
checkLoadConditions()¶
checkLoadConditions(
tries?):Promise<void>
Defined in: extension/data/framework/loadConditions.ts:17
Decides whether Toolbox should keep loading: confirms a user is logged in,
that we haven’t already initialized in this window, and that we’re not in a
Firefox incognito window. A false result means init should stop early.
Parameters¶
tries?¶
number = 3
Number of attempts to read a logged-in user (default 3).
Returns¶
Promise<void>