mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
parent
8c54b98483
commit
320399dca9
1 changed files with 2 additions and 2 deletions
|
|
@ -499,8 +499,8 @@ Zotero_Preferences.Sync = {
|
|||
var newProtocol = Zotero.Prefs.get('sync.storage.protocol');
|
||||
|
||||
var newURL = Zotero.Prefs.get('sync.storage.url').trim()
|
||||
// Strip scheme and '/zotero'
|
||||
.replace(/(^https?:\/\/|\/zotero\/?$|\/$)/g, '')
|
||||
// Strip scheme, leading '://' or '//' (#3483), and trailing '/zotero'
|
||||
.replace(/(^https?:\/\/|^:?\/\/|\/zotero\/?$|\/$)/g, '')
|
||||
Zotero.Prefs.set('sync.storage.url', newURL);
|
||||
|
||||
if (oldProtocol != newProtocol || oldURL != newURL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue