Skip to content

Commit

Permalink
Move loadWidgets after setUI
Browse files Browse the repository at this point in the history
The checker said that I should load widgets after setUI, so I did that.
  • Loading branch information
PastaRhythm committed Aug 27, 2023
1 parent 849cc0c commit 230c682
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions apps/bblobsface/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,22 +603,6 @@
}
};

g.reset();

Bangle.loadWidgets();
require("widget_utils").hide();

drawBackground();
drawTime(true);

restartGame();

newPair();
drawGhostPiece(false);

drawNextQueue();
drawChainCount();

// ~~ Events ~~
let dragAmnt = 0;

Expand Down Expand Up @@ -765,4 +749,20 @@
if (clockDrawTimeout) clearTimeout(clockDrawTimeout);
require("widget_utils").show();
}});

g.reset();

Bangle.loadWidgets();
require("widget_utils").hide();

drawBackground();
drawTime(true);

restartGame();

newPair();
drawGhostPiece(false);

drawNextQueue();
drawChainCount();
}

0 comments on commit 230c682

Please sign in to comment.