Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

pull/1/head
yflory 6 years ago
commit ff6bb31eef

@ -106,9 +106,8 @@ define([
// 'block/' here is hardcoded because it's hardcoded on the server // 'block/' here is hardcoded because it's hardcoded on the server
// if we want to make CryptPad work in server subfolders, we'll need // if we want to make CryptPad work in server subfolders, we'll need
// to update this path derivation // to update this path derivation
return (typeof(ApiConfig.httpUnsafeOrigin) !== 'undefined'? return (ApiConfig.fileHost || window.location.origin)
ApiConfig.httpUnsafeOrigin: window.location.origin + '/') + '/block/' + publicKey.slice(0, 2) + '/' + publicKey;
+ 'block/' + publicKey.slice(0, 2) + '/' + publicKey;
}; };
Block.getBlockHash = function (keys) { Block.getBlockHash = function (keys) {

Loading…
Cancel
Save