moderator-toolbox-nxg-for-reddit / util/reddit/events
util/reddit/events¶
Functions¶
sendEvent()¶
sendEvent(
tbuEvent):void
Defined in: extension/data/util/reddit/events.ts:10
Dispatches a CustomEvent with the given name on the window.
Parameters¶
tbuEvent¶
string
Returns¶
void
setupMessageBridge()¶
setupMessageBridge():
void
Defined in: extension/data/util/reddit/events.ts:24
Returns¶
void
Variables¶
events¶
constevents:object
Defined in: extension/data/util/reddit/events.ts:45
Well-known Toolbox event names dispatched on the window.
Type Declaration¶
TB_APPROVE_THING¶
TB_APPROVE_THING:
string='TB_APPROVE_THING'
TB_PROPOSALS_CHANGED¶
TB_PROPOSALS_CHANGED:
string='TB_PROPOSALS_CHANGED'
TB_SAMPLE_SOUND¶
TB_SAMPLE_SOUND:
string='TB_SAMPLE_SOUND'
TB_SYNTAX_SETTINGS¶
TB_SYNTAX_SETTINGS:
string='TB_SYNTAX_SETTINGS'
TB_UPDATE_COUNTERS¶
TB_UPDATE_COUNTERS:
string='TB_UPDATE_COUNTERS'