We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc0742 commit fca687cCopy full SHA for fca687c
src/client/sidebar-init.ts
@@ -1,3 +1,6 @@
1
+// Remove basic authentication in the URL, if any (to fix file attachments).
2
+if (Object.assign(document.createElement("a"), {href: ""}).password) location.replace(location.href);
3
+
4
const sidebar = document.querySelector<HTMLElement>("#observablehq-sidebar")!;
5
const toggle = document.querySelector<HTMLInputElement>("#observablehq-sidebar-toggle")!;
6
0 commit comments