Skip to content

Commit

Permalink
Updating version in code for update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Epstein committed Jun 2, 2017
1 parent f5164db commit 4d1d47d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function nodeJobs(sleepTimes) {
try {
jobs[i].cancel(); //try to cancel respective job
} catch (e) {

}

jobs[i] = schedule.scheduleJob(sleepTimes[i], showNotification); //scheduling notification jobs
Expand Down Expand Up @@ -140,7 +140,7 @@ function generateSleepTimes() {


function setTime() { //called when set wakeup time button is pressed
settings.set("Version", "v1.7.0");
settings.set("Version", "v1.8.0");
sleepTimes = generateSleepTimes(); //determine sleepTimes based off of wakeuptime
sleepTimes = setSleepTimes(sleepTimes); //determine the sleepTimes in formatted form to be shown to user
document.getElementById("sleepTimes").innerHTML = "Optimal sleeping times"; //change blank text
Expand Down Expand Up @@ -266,7 +266,7 @@ function getLatestReleaseInfo() {
var release = json[0].name; //get the newest app version
latestRelease = release;
release = release.split("");
var myversion = settings.get("Version", "v1.7.0").split("");
var myversion = settings.get("Version", "v1.8.0").split("");

if (release[1] > myversion[1]) //check if it matches current app version
{
Expand Down

0 comments on commit 4d1d47d

Please sign in to comment.