« get me outta code hell

data, html, infra: supporting changes for sanitizing content - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/thing.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-11 10:09:48 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-11 10:09:48 -0300
commitd878ab29f20c0727acafb4b1150d4e31d69c55c0 (patch)
tree69a92256a271642e948acc9ce3874e3e1e0ea6e1 /src/data/things/thing.js
parent0ff743b1350b1d42ba23d9701a0b7acfb7501254 (diff)
data, html, infra: supporting changes for sanitizing content
Diffstat (limited to 'src/data/things/thing.js')
-rw-r--r--src/data/things/thing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index c2876f56..5705ee7e 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -105,8 +105,8 @@ export default class Thing extends CacheableObject {
 
     // External function. These should only be used as dependencies for other
     // properties, so they're left unexposed.
-    externalFunction: () => ({
-      flags: {update: true},
+    externalFunction: ({expose = false} = {}) => ({
+      flags: {update: true, expose},
       update: {validate: (t) => typeof t === 'function'},
     }),