Add power mode to gulp and init when ready

This commit is contained in:
Otard95 2021-06-02 21:08:11 +02:00
parent 3840504efd
commit 914ae704e3
2 changed files with 4 additions and 1 deletions

View file

@ -109,6 +109,7 @@ const refactoredSrc = [
"./src/js/input-controller.js",
"./src/js/route-controller.js",
"./src/js/ready.js",
"./src/js/power-mode.js",
"./src/js/account/all-time-stats.js",
"./src/js/account/pb-tables.js",

View file

@ -6,6 +6,7 @@ import * as Settings from "./settings";
import * as RouteController from "./route-controller";
import * as UI from "./ui";
import * as SignOutButton from "./sign-out-button";
import * as PowerMode from "./power-mode";
ManualRestart.set();
Misc.migrateFromCookies();
@ -17,7 +18,7 @@ $(document).ready(() => {
if (window.location.pathname === "/") {
$("#top .config").removeClass("hidden");
}
$("body").css("transition", ".25s");
$("body").css("transition", "all .25s, transform .05s");
if (Config.quickTab) {
$("#restartTestButton").addClass("hidden");
}
@ -56,4 +57,5 @@ $(document).ready(() => {
}
});
Settings.settingsFillPromise.then(Settings.update);
PowerMode.init();
});