-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
document.write() removes Eruda. #413
Comments
That is weird. The entire webpage just goes white like the white screen of death. |
i mean thats because that completely clears the document. if you really want it to be added back though you can do something like this to override the document.write function and make it re-add eruda after the clear: i dont know why i even did this |
Sure, I could. But the problem isn't necessarily that document.write specifically causes problems that I don't want; the problem is that "document" refers to the entire document, including Eruda, and this can cause problems in many ways, that being one of them. Also, I don't think anybody actually uses document.write and would care enough to use a script like the one you provided. |
This is just a silly little bug I found, not very important. But
document.write()
really does affect the entire document, including Eruda. You also cannot bring it back after writing. I'm sure this is an easy fix, but I could be wrong. Thanks!The text was updated successfully, but these errors were encountered: