Skip to content

Commit 02dff22

Browse files
refactor(js): improve code formatting and structure in game.js and admob.ts
1 parent e72f0b1 commit 02dff22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

www/src/js/cookie/game.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ $(".cookie").on("click", function (e) {
2525
const Y = e.pageY - offset.top;
2626

2727
$effect.css({
28-
left: X + "px",
29-
top: Y + "px",
28+
left: `${X}px`,
29+
top: `${Y}px`,
3030
position: "absolute",
3131
});
3232

www/src/plugins/admob.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ function $award() {
6565
}
6666

6767
$(() => {
68-
/* if (window.Capacitor.getPlatform() !== "android") {
68+
if (window.Capacitor.getPlatform() !== "android") {
6969
console.log(
7070
`AdMob: Unsupported platform (${window.Capacitor.getPlatform()})`,
7171
);
7272
return;
73-
}*/
73+
}
7474

7575
AdMob.initialize()
7676
.then(() => {

0 commit comments

Comments
 (0)