From 02dff22d3db7f0af6f3755535b20bbcb24b4c85f Mon Sep 17 00:00:00 2001 From: sebastianjnuwu Date: Sun, 29 Dec 2024 16:59:25 -0300 Subject: [PATCH] refactor(js): improve code formatting and structure in game.js and admob.ts --- www/src/js/cookie/game.js | 4 ++-- www/src/plugins/admob.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/src/js/cookie/game.js b/www/src/js/cookie/game.js index 901a95a..e5d1282 100644 --- a/www/src/js/cookie/game.js +++ b/www/src/js/cookie/game.js @@ -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", }); diff --git a/www/src/plugins/admob.ts b/www/src/plugins/admob.ts index c0dc60e..6e66324 100644 --- a/www/src/plugins/admob.ts +++ b/www/src/plugins/admob.ts @@ -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(() => {