Fix detection of WebDAV settings on Windows and Linux

Fixes #1291, hopefully for real this time
This commit is contained in:
Dan Stillman 2019-03-13 02:45:31 -04:00
parent 435e628973
commit cd55aebbc0

View file

@ -493,6 +493,11 @@ Zotero_Preferences.Sync = {
var usernameField = document.getElementById("storage-username");
var passwordField = document.getElementById("storage-password");
// These don't get set until window close on Windows/Linux (no instantApply),
// so set them explicitly when verifying
Zotero.Prefs.set('sync.storage.url', urlField.value);
Zotero.Prefs.set('sync.storage.username', usernameField.value);
verifyButton.hidden = true;
abortButton.hidden = false;
progressMeter.hidden = false;