Skip to content

Commit 6d3efac

Browse files
authored
Revert "fix auth-in-url (#576)" (#1733)
This reverts commit fca687c.
1 parent ba59a5e commit 6d3efac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/client/sidebar-init.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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-
41
const sidebar = document.querySelector<HTMLElement>("#observablehq-sidebar")!;
52
const toggle = document.querySelector<HTMLInputElement>("#observablehq-sidebar-toggle")!;
63

0 commit comments

Comments
 (0)