fix random games button and change featured image

This commit is contained in:
Russell2259
2024-02-25 04:35:18 +00:00
parent 3b35aa885b
commit f7eef1bce6
10 changed files with 62 additions and 41 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const templateParser = (data) => {
.map(data => {
if (data) {
if (data.startsWith('{{') && data.split(':')[data.split(':').length - 2].endsWith('}}')) {
if (config.allowDangerousTemplateInsert) {
if (config.options.allowDangerousTemplateInsert) {
if (Boolean(eval(String(data.split(':')[data.split(':').length - 2]).slice(2, -2)))) return data;
else return undefined;
} else return undefined;