fix parentheses, lint

This commit is contained in:
Sebastian Alff 2022-05-24 21:23:25 +02:00
parent b8270acc76
commit a4b95c88d9
1 changed files with 8 additions and 6 deletions

View File

@ -16,9 +16,10 @@ if (module.hot) {
if (!updatedModules) { if (!updatedModules) {
log( log(
"warning", "warning",
"[HMR] Cannot find update. " + typeof window !== "undefined" "[HMR] Cannot find update. " +
? "Need to do a full reload!" (typeof window !== "undefined"
: "Please reload manually!" ? "Need to do a full reload!"
: "Please reload manually!")
); );
log( log(
"warning", "warning",
@ -45,9 +46,10 @@ if (module.hot) {
if (["abort", "fail"].indexOf(status) >= 0) { if (["abort", "fail"].indexOf(status) >= 0) {
log( log(
"warning", "warning",
"[HMR] Cannot apply update. " + typeof window !== "undefined" "[HMR] Cannot apply update. " +
? "Need to do a full reload!" (typeof window !== "undefined"
: "Please reload manually!" ? "Need to do a full reload!"
: "Please reload manually!")
); );
log("warning", "[HMR] " + log.formatError(err)); log("warning", "[HMR] " + log.formatError(err));
if (typeof window !== "undefined") { if (typeof window !== "undefined") {