Use namespaces.svg constant (#4952)

pull/4957/head
Ben McCann 4 years ago committed by GitHub
parent 8fc85f0ef6
commit e606a0c878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -405,7 +405,7 @@ export default class ElementWrapper extends Wrapper {
get_render_statement(block: Block) {
const { name, namespace } = this.node;
if (namespace === 'http://www.w3.org/2000/svg') {
if (namespace === namespaces.svg) {
return x`@svg_element("${name}")`;
}

Loading…
Cancel
Save