Skip to content

Commit

Permalink
Use namespaces.svg constant (#4952)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jun 2, 2020
1 parent 8fc85f0 commit e606a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/compile/render_dom/wrappers/Element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")`;
}

Expand Down

0 comments on commit e606a0c

Please sign in to comment.