moderator-toolbox-nxg-for-reddit / modules/support/dom
modules/support/dom¶
Functions¶
buildSubmissionAddition()¶
buildSubmissionAddition(
info):string
Defined in: extension/data/modules/support/dom.ts:31
Renders the debug-information markdown table to append to a support submission.
Parameters¶
info¶
Browser and toolbox diagnostic values to include.
advancedSettings¶
boolean
browser¶
string
browserVersion¶
string
compactMode¶
boolean
debugMode¶
boolean
platformInformation¶
string
toolboxVersion¶
string
Returns¶
string
A markdown string ready to append to a Reddit text post or comment.
createSupportHandlers()¶
createSupportHandlers(
submissionAddition):SupportHandlers
Defined in: extension/data/modules/support/dom.ts:94
Creates DOM handlers for the support module.
Parameters¶
submissionAddition¶
string
Pre-rendered debug-info markdown to append to text areas.
Returns¶
Interfaces¶
SupportHandlers¶
Defined in: extension/data/modules/support/dom.ts:79
Handlers returned by createSupportHandlers for the Support module lifecycle.
Properties¶
handleInsertDebug¶
handleInsertDebug: (
element) =>void
Defined in: extension/data/modules/support/dom.ts:87
Appends debug info to the nearest comment text area when the insert button is clicked.
Parameters¶
element¶
Element
Returns¶
void
handleSubmitInsert¶
handleSubmitInsert: () =>
void
Defined in: extension/data/modules/support/dom.ts:81
Appends debug info to the submission text area when the insert button is clicked.
Returns¶
void