Fix getMonth function calls
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
this.dateAgreement = loadedSettings.dateAgreement && new Date(loadedSettings.dateAgreement)
|
||||
}
|
||||
var curDate = new Date ()
|
||||
var agreeStillValid = this.dateAgreement && (curDate < this.dateAgreement.setMonths(this.dateAgreement.getMonths() + 3))
|
||||
var agreeStillValid = this.dateAgreement && (curDate < this.dateAgreement.setMonth(this.dateAgreement.getMonth() + 3))
|
||||
if (this.siteAgreement && this.rememberAgreement && agreeStillValid) {
|
||||
this.showDisclaimer = false
|
||||
store().agree()
|
||||
|
||||
Reference in New Issue
Block a user