Closed TheShadowEevee closed 3 years ago
Conflicts have been resolved between my testing-36
branch and the master
branch. This PR should be ready to be merged.
I had to remove a space in app.js
line 107 (See commit 69189f6) in order to prevent tripping the CodeQL test complaining about filesystem access without rate limiting; I'm not sure if that's intended but it should be no different from how it's always worked so I figure removing that space is fine for now.
There are no merge conflicts left, and all tests are passing.
Fixed a bug related to CORS caused by requesting the rendering server as http instead of https
I hate this bug and everything about it.
For a reason I cannot comprehend the remote studio.cgi api returns without a "Access-Control-Allow-Origin" header if it cannot parse the image file.
This only happens on a QR it cannot parse (or an image that isn't a QR at all), so technically things work mostly as intended; there's just a CORS policy error in the browsers console if a bad file is sent.
Implements feature requested in #36
Main Changes:
This PR adds a field in /edit allowing users to upload a QR Code for a Mii in the Gen2 (WiiU, 3DS, Miitomo) format. This is parsed in the edit.js file and sent to
src/renderGen2Mii.js
to be rendered and set as a Mii.Minor Changes: (Not the main focus, but are still included)
Closing
This should implement the Gen2 Mii support requested in #36 by @larsenv. I spent way too long over complicating this, and then spent way too long trying to figure out why "fetch" wasn't working only to discover there was a custom function already in
edit.js
already called fetch (This has been renamed to httpFetch.)