Skip to content
Snippets Groups Projects
Commit 6bbc3330 authored by Igor Markin's avatar Igor Markin
Browse files

Fix catch

parent a593a788
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ const cloneAnchorFromPane = (a, pane) => {
pane.parentNode.insertBefore(a.cloneNode(false), pane);
}
}
catch {
return;
catch (e) {
return e;
}
};
exports.cloneAnchorFromPane = cloneAnchorFromPane;
const DUMMY_QR_CODE_ID = "dummyQrCode";
export const ELEMENT_TYPES_TO_REMOVE = { br: true, hr: true, use: true, svg: true };
export const ELEMENT_TYPES_TO_REMOVE = {
br: true,
hr: true,
use: true,
svg: true,
};
export const ATTRIBUTES_TO_KEEP = {
alt: true,
......@@ -51,7 +56,7 @@ export const cloneAnchorFromPane = (
if (url.host && url.protocol) {
pane.parentNode.insertBefore(a.cloneNode(false), pane);
}
} catch {
return;
} catch (e) {
return e;
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment