fil commited on
Commit
69d6a2e
1 Parent(s): b9f384c
Files changed (1) hide show
  1. observablehq.config.ts +2 -2
observablehq.config.ts CHANGED
@@ -2,8 +2,8 @@ export default {
2
  title: "FPDN",
3
  footer: `
4
  <script type="module">
5
- for (const a of querySelectorAll("a[href^=http]")) {
6
- a.setAttribute("target", "_top"); // exit iframe
7
  }
8
  </script>
9
  </script><script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.contentWindow.min.js"></script>
 
2
  title: "FPDN",
3
  footer: `
4
  <script type="module">
5
+ for (const a of document.querySelector("main").querySelectorAll("a[href^=http]")) {
6
+ a.setAttribute("target", "_blank"); // exit iframe
7
  }
8
  </script>
9
  </script><script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.contentWindow.min.js"></script>