Update default mii data

Co-authored-by: ash <hey@ashm.dev>
This commit is contained in:
Jelle van Snik 2022-09-23 20:33:35 +02:00
parent 314fcf9be5
commit 414e91073b

View File

@ -6,6 +6,7 @@
* browserify is needed for the use of require() in the browser
*/
const Mii = require('mii-js');
const newMiiData = 'AwAAQOlVognnx0GC2qjhdwOzuI0n2QAAAGBzAHQAZQB2AGUAAAAAAAAAAAAAAEBAAAAhAQJoRBgmNEYUgRIXaA0AACkAUkhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAANeC';
// Prevent the user from reloading or leaving the page
window.onbeforeunload = function (e) {
@ -87,8 +88,6 @@ if (!validMiiData) {
const shouldContinue = window.confirm('Found corrupted mii data, want to continue with a new Mii?');
if (!shouldContinue)
window.location.assign('/account');
const newMii = 'AAEAQCpE2oVAJPDA1/vMZJrD1O74rwAAqWFCAEIAAAAAAAAAAAAAAAAAAAAAAGZfBABgAbFGYxYkFEUSwRITZg8ACCUwSqNYYQBzAGgAbQAAAAAAAAAAAAAAAAAAAKCF';
initializeMiiData(newMii);
}
// we keeep the images here so we can cache them when we need to change the build/height