Commit e40af0f
authored
fix(export): add clipboard fallback support for unsupported browsers (JhaSourav07#977)
## Description
Fixes JhaSourav07#971
Adds graceful clipboard fallback support for environments where
`navigator.clipboard` is unavailable.
### Changes
- Added fallback clipboard copy support using
`document.execCommand('copy')`
- Improved browser compatibility for export snippet copying
- Prevented copy failures in unsupported or insecure environments
## Pillar
- [ ] 🎨 Pillar 1 — New Theme Design
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [x] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
<!-- Add screenshot/gif here -->
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally.
- [x] I have run `npm run format` and `npm run lint`.
- [x] My commits follow the Conventional Commits format.
- [x] I have made sure only relevant files were changed.1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
156 | 180 | | |
157 | 181 | | |
158 | 182 | | |
| |||
164 | 188 | | |
165 | 189 | | |
166 | 190 | | |
167 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
168 | 201 | | |
| 202 | + | |
169 | 203 | | |
170 | 204 | | |
171 | 205 | | |
| |||
180 | 214 | | |
181 | 215 | | |
182 | 216 | | |
| 217 | + | |
183 | 218 | | |
184 | 219 | | |
185 | 220 | | |
| |||
0 commit comments