fil commited on
Commit
b9f384c
1 Parent(s): f61cb2d

exit iframe

Browse files
Files changed (1) hide show
  1. observablehq.config.ts +8 -1
observablehq.config.ts CHANGED
@@ -1,5 +1,12 @@
1
  export default {
2
  title: "FPDN",
3
- footer: `<script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.contentWindow.min.js"></script>`,
 
 
 
 
 
 
 
4
  pager: false,
5
  };
 
1
  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>
10
+ `,
11
  pager: false,
12
  };