Skip to content

Commit

Permalink
remove unneeded conosle log
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed May 13, 2022
1 parent de44a63 commit 7014ee0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions frontend/gfx-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ let previousState = 'HIDDEN'
const namespace = 'module-league-runes'

const updateUi = data => {
console.log(data);

if (data.state === 'HIDDEN') {
$('.blue-box').addClass('hidden');
$('.red-box').addClass('hidden');
console.log('state is hidden')
} else {
console.log(previousState, data.state)
if (previousState !== data.state) {
$('.red-box').addClass('hidden');
$('.blue-box').addClass('hidden');
Expand Down Expand Up @@ -38,8 +34,6 @@ const updateUi = data => {
secondary2: getDDragonPath(runes[5].icon)
})

console.log(data.participants[championMapping[num][0] - 1].perks.perkConstants)

const championLeft = data.participants[championMapping[num][0] - 1].champion
const championRight = data.participants[championMapping[num][1] - 1].champion
const runesLeft = data.participants[championMapping[num][0] - 1].perks.perkConstants
Expand Down
1 change: 0 additions & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module.exports = (ctx) => {

ctx.LPTE.on('module-league-state', 'live-game-loaded', e => {
gfxState.participants = e.state.web.live.participants;
// console.log(e)
gfxState.dataState = 'READY'
emitUpdate()
});
Expand Down

0 comments on commit 7014ee0

Please sign in to comment.