Skip to content

Commit 9974f64

Browse files
committed
allow envelope to accept header as a function
1 parent 90bd598 commit 9974f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/devtools/toolbox.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
([obj header style tag]
1818
(reify
1919
format/IDevtoolsFormat
20-
(-header [_] (format/template tag style header))
20+
(-header [_] (format/template tag style (if (fn? header) (header obj) header)))
2121
(-has-body [_] true)
2222
(-body [_] (format/standard-reference obj)))))

0 commit comments

Comments
 (0)