0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 18:12:40 +00:00

Change DOMPurify config

This commit is contained in:
G.Ambatte
2024-06-29 15:35:37 +12:00
parent 758a06e58a
commit 47b78510df

View File

@@ -16,7 +16,7 @@ const dedent = require('dedent-tabs').default;
const { printCurrentBrew } = require('../../../shared/helpers.js');
const DOMPurify = require('dompurify');
const purifyConfig = { FORCE_BODY: true, SANITIZE_DOM: false };
const purifyConfig = { FORCE_BODY: true, SANITIZE_DOM: false, ADD_ATTR: ['target'] };
const Themes = require('themes/themes.json');