mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
8 lines
213 B
JavaScript
8 lines
213 B
JavaScript
module.exports = function transform(el, context) {
|
|
if (el.hasAttribute('csp-nonce')) {
|
|
|
|
el.removeAttribute('csp-nonce');
|
|
|
|
el.setAttributeValue('nonce', context.builder.literal('foo'));
|
|
}
|
|
}; |