fx-compat: Remove nsIURI.clone() usage
This commit is contained in:
parent
6297d0862f
commit
20945f60c9
1 changed files with 3 additions and 3 deletions
|
@ -158,14 +158,14 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
|
||||||
if (!this._rootURI) {
|
if (!this._rootURI) {
|
||||||
this._init();
|
this._init();
|
||||||
}
|
}
|
||||||
return this._rootURI.clone();
|
return this._rootURI;
|
||||||
},
|
},
|
||||||
|
|
||||||
get parentURI() {
|
get parentURI() {
|
||||||
if (!this._parentURI) {
|
if (!this._parentURI) {
|
||||||
this._init();
|
this._init();
|
||||||
}
|
}
|
||||||
return this._parentURI.clone();
|
return this._parentURI;
|
||||||
},
|
},
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
|
@ -1397,7 +1397,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
let deleteURI = this.rootURI.clone();
|
let deleteURI = this.rootURI;
|
||||||
// This should never happen, but let's be safe
|
// This should never happen, but let's be safe
|
||||||
if (!deleteURI.spec.match(/\/$/)) {
|
if (!deleteURI.spec.match(/\/$/)) {
|
||||||
throw new Error("Root URI does not end in slash");
|
throw new Error("Root URI does not end in slash");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue