Skip to content

Commit

Permalink
Update super-sky.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebakerio authored Sep 2, 2021
1 parent 9ed5e8b commit f22780c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions super-sky.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,6 @@ AFRAME.registerComponent('super-sky', {
},

padTime(n) {
console.log(n, n.length)
return (n+"").length < 2 ? "0" + n : ""+n;
},

Expand All @@ -653,11 +652,11 @@ AFRAME.registerComponent('super-sky', {
// e.g.,
/*
screen1:
JSON.stringify(document.querySelector('[super-sky]').components['super-sky'].shareSky())
let user1Sky = JSON.stringify(document.querySelector('[super-sky]').components['super-sky'].shareSky())
screen2:
let user1Sky = JSON.parse(
user1Sky = JSON.parse(
user1Sky
)
document.querySelector('[super-sky]').components['super-sky'].data.mooncycle = user1Sky.mooncycle
document.querySelector('[super-sky]').components['super-sky'].updateOrbitDuration(user1Sky.orbitduration)
Expand Down

0 comments on commit f22780c

Please sign in to comment.