Commit 81ad0fb
committed
fix(docs[spa]): Re-initialize prompt-copy buttons after SPA navigation
why: prompt-copy.js init ran once on DOMContentLoaded inside an IIFE.
After SPA navigation, new prompt blocks lacked markdown-preserving copy.
what:
- Expose init via window.__promptCopyInit in prompt-copy.js
- Call __promptCopyInit from reinit() in spa-nav.js1 parent 6e16a61 commit 81ad0fb
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments