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

Edge delete globalObject[safeGlobalName]; issue #112

Closed
mattpilott opened this issue Dec 21, 2017 · 2 comments
Closed

Edge delete globalObject[safeGlobalName]; issue #112

mattpilott opened this issue Dec 21, 2017 · 2 comments

Comments

@mattpilott
Copy link

Hey, I'm hoping someone is about to help me on an issue i'm seeing in microsoft edge.

I included formio react and setup a form and it works a treat everywhere except edge (even IE11)

This issue is causing the client site to render a white page with no errors in the console. However the below is what the dev environment gives me.

formio

I would really appreciate a quick response if at all possible

Thanks!

@mattpilott
Copy link
Author

mattpilott commented Dec 21, 2017

I've literally done the worst thing possible and wrapped that offending code in a condition

// Cleanup
// This can throw errors in some versions of IE for unknown reasons at this time.
if (window.navigator.userAgent.indexOf("Edge") < 1) {
        if (globalObject[safeGlobalName]) {
            delete globalObject[safeGlobalName];
        }
}

@randallknutson
Copy link
Contributor

This is no longer applicable to the latest codebase. I'd recommend upgrading to the latest.

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

2 participants