mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Fix URI in "put" save handler
We don’t want the location hash
This commit is contained in:
parent
bdd5aa9343
commit
f51f6bf774
@ -24,7 +24,7 @@ var PutSaver = function(wiki) {
|
|||||||
// Async server probe. Until probe finishes, save will fail fast
|
// Async server probe. Until probe finishes, save will fail fast
|
||||||
// See also https://github.com/Jermolene/TiddlyWiki5/issues/2276
|
// See also https://github.com/Jermolene/TiddlyWiki5/issues/2276
|
||||||
var req = new XMLHttpRequest();
|
var req = new XMLHttpRequest();
|
||||||
req.open("OPTIONS", encodeURI(window.location.href));
|
req.open("OPTIONS",encodeURI(document.location.protocol + "//" + document.location.hostname + ":" + document.location.port + document.location.pathname));
|
||||||
req.onload = function() {
|
req.onload = function() {
|
||||||
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
|
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
|
||||||
self.serverAcceptsPuts = (this.status === 200 && !!this.getResponseHeader('dav'));
|
self.serverAcceptsPuts = (this.status === 200 && !!this.getResponseHeader('dav'));
|
||||||
|
Loading…
Reference in New Issue
Block a user