Skip to content

Commit

Permalink
refactor(js): improve code formatting and structure in game.js and ad…
Browse files Browse the repository at this point in the history
…mob.ts
  • Loading branch information
sebastianjnuwu committed Dec 29, 2024
1 parent e72f0b1 commit 02dff22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/src/js/cookie/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ $(".cookie").on("click", function (e) {
const Y = e.pageY - offset.top;

$effect.css({
left: X + "px",
top: Y + "px",
left: `${X}px`,
top: `${Y}px`,
position: "absolute",
});

Expand Down
4 changes: 2 additions & 2 deletions www/src/plugins/admob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ function $award() {
}

$(() => {
/* if (window.Capacitor.getPlatform() !== "android") {
if (window.Capacitor.getPlatform() !== "android") {
console.log(
`AdMob: Unsupported platform (${window.Capacitor.getPlatform()})`,
);
return;
}*/
}

AdMob.initialize()
.then(() => {
Expand Down

0 comments on commit 02dff22

Please sign in to comment.