Set auto-sync expiry to September 1, 2008
This commit is contained in:
parent
20d649ee42
commit
13de37cea7
1 changed files with 6 additions and 0 deletions
|
@ -381,6 +381,12 @@ Zotero.Sync.Server = new function () {
|
|||
this.setSyncIcon = setSyncIcon;
|
||||
|
||||
this.__defineGetter__('enabled', function () {
|
||||
// Set auto-sync expiry
|
||||
var expiry = new Date("September 1, 2008 00:00:00");
|
||||
if (new Date() > expiry) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.username && this.password;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue