Fix error when loading painting from URL#268
Open
msub2 wants to merge 2 commits intoaframevr:masterfrom
Open
Conversation
dmarcos
reviewed
Mar 8, 2022
| document.getElementById('acamera').setAttribute('orbit-controls', 'position', '0 1.6 3'); | ||
| document.getElementById('apainter-logo').classList.remove('hidden'); | ||
| //document.getElementById('apainter-author').classList.remove('hidden'); // not used yet | ||
| document.addEventListener('DOMContentLoaded', e => { |
Member
There was a problem hiding this comment.
This is strange. This logic is in the init method. It shouldn't run before the DOM is ready. Maybe I'm not fully understanding
Contributor
Author
|
I'll test it again later today, but it seemed to be consistently happening |
Contributor
Author
Was getting an error while removing the hidden class from apainter-logo. Wrapped the code block in a DOMContentLoaded listener to fix.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Was getting an error while removing the hidden class from apainter-logo.
Wrapped the code block in a DOMContentLoaded listener to fix.
Also updated THREE.XHRLoader -> THREE.FileLoader