mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
docs: mustache helper safety check
This commit is contained in:
parent
079d7eb6ca
commit
0ae4416242
@ -8,6 +8,9 @@ const helpers = require('handlebars-helpers')({
|
|||||||
|
|
||||||
// Allows pipe characters to be used within markdown tables.
|
// Allows pipe characters to be used within markdown tables.
|
||||||
handlebars.registerHelper('depipe', (text) => {
|
handlebars.registerHelper('depipe', (text) => {
|
||||||
|
if (!text) {
|
||||||
|
return text;
|
||||||
|
}
|
||||||
return text.replace('|', `\\|`);
|
return text.replace('|', `\\|`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -595,7 +595,7 @@ void WSRequestHandler::HandleGetSceneItemProperties(WSRequestHandler* req) {
|
|||||||
* @param {String} `bounds.type` The new bounds type of the source.
|
* @param {String} `bounds.type` The new bounds type of the source.
|
||||||
* @param {int} `bounds.alignment` The new alignment of the bounding box. (0-2, 4-6, 8-10)
|
* @param {int} `bounds.alignment` The new alignment of the bounding box. (0-2, 4-6, 8-10)
|
||||||
* @param {double} `bounds.x` The new width of the bounding box.
|
* @param {double} `bounds.x` The new width of the bounding box.
|
||||||
* @param {double} `bounds.y' The new height of the bounding box.
|
* @param {double} `bounds.y` The new height of the bounding box.
|
||||||
*
|
*
|
||||||
* @api requests
|
* @api requests
|
||||||
* @name SetSceneItemProperties
|
* @name SetSceneItemProperties
|
||||||
|
Loading…
x
Reference in New Issue
Block a user