Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow svg symbol to be placed into another location #33

Closed
wants to merge 1 commit into from
Closed

Allow svg symbol to be placed into another location #33

wants to merge 1 commit into from

Conversation

kiwiupover
Copy link
Contributor

@kiwiupover kiwiupover commented Apr 27, 2017

First thanks for a great project

We are using a visual regressions in our tests and the embedded svgJar object is not included in output of test unless the svgJar symbol object is placed into the #ember-testing-container. We are using percy.io

Is this something worth adding to this project?

@@ -5,6 +5,9 @@
ajax.onload = function(e) {
var div = document.createElement('div');
div.innerHTML = ajax.responseText;
if ({{LOADER_LOCATION_ENABLED}}) {
return document.getElementById('{{LOADER_LOCATION}}').appendChild(div)
}
document.body.insertBefore(div, document.body.childNodes[0]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kiwiupover It looks like you're duplicating the insertion of the div, rather than changing it's location. I think you just want to make document.body.childNodes[0] on this line dynamic, right? Maybe adding a single config property like loaderLocation and having it default to 'body'?

@kiwiupover kiwiupover closed this Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants