Fix enabling TOTP with sandbox

This commit is contained in:
yflory 2023-05-15 12:13:14 +02:00
parent d789627920
commit be152fdaae
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ define([
// 'block/' here is hardcoded because it's hardcoded on the server
// if we want to make CryptPad work in server subfolders, we'll need
// to update this path derivation
return (ApiConfig.fileHost || window.location.origin)
return (ApiConfig.fileHost || ApiConfig.httpUnsafeOrigin || window.location.origin)
+ '/block/' + publicKey.slice(0, 2) + '/' + publicKey;
};