refactor: remove optional chaining
This commit is contained in:
parent
1deb172cb1
commit
2b4569fda0
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ export const Minesweeper = function(appId) {
|
|||
const title = `Best Times (${setting.name})`;
|
||||
leaderBoard.update(setting.name, leaderWrapper, title);
|
||||
|
||||
appElement?.append(leaderWrapper);
|
||||
if(appElement)
|
||||
appElement.append(leaderWrapper);
|
||||
}
|
||||
|
||||
function initializeFootbar() {
|
||||
|
|
Loading…
Reference in a new issue