mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix(linked-doc): add feedback + cb error when href cannot be parsed
This commit is contained in:
parent
c1b8f87e02
commit
4cf1b68830
@ -674,7 +674,10 @@ const factory = (Sortify, UserObject, ProxyManager,
|
||||
let l = pws.length;
|
||||
|
||||
const parsed = Hash.parsePadUrl(href);
|
||||
if (!parsed?.hash) { return cb(); } // We cannot fixed it anyhow
|
||||
if (!parsed?.hash) { // href is not parsable
|
||||
Feedback.send(`ADD_MISSING_LINKED_DATA_PARSE_HREF:${href}`, true);
|
||||
return cb('E_LINKED_PARSE_HREF');
|
||||
}
|
||||
const check = password => {
|
||||
opts.password = password;
|
||||
Cryptget.get(parsed.hash, (err, contentStr) => {
|
||||
|
||||
2
www/common/worker.bundle.min.js
vendored
2
www/common/worker.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user