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

Using togeojson with Electron (17.1.0) causes it to use the incorrect XMLserializer #176

Open
tris-g opened this issue Mar 11, 2022 · 0 comments

Comments

@tris-g
Copy link

tris-g commented Mar 11, 2022

This section of code (starting line 82 in togeojson.js) causes an XMLserialization error when trying to use it with Electron as the XMLSerializer shows as being defined when it needs to actually use xmldom.

var serializer;
if (typeof XMLSerializer !== 'undefined') {
    /* istanbul ignore next */
    serializer = new XMLSerializer();
// only require xmldom in a node environment
} else if (typeof exports === 'object' && typeof process === 'object' && !process.browser) {
    serializer = new (require('xmldom').XMLSerializer)();
}
Uncaught TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.
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

No branches or pull requests

1 participant