Commit b6009e7
Etherpad 2.x removed the `static/js/browser` helper during the esbuild
refactor. Requiring it at the top of `static/js/index.js` made the
entire module fail to load on the server — visible as
"Cannot find module 'ep_etherpad-lite/static/js/browser'" (previously
"window is not defined" on older Etherpad versions that did ship the
helper but threw while evaluating it in a Node context). That in turn
broke the \`/admin/plugins/info\` troubleshooting page, which tries to
require every client hook module for reporting.
The only use of `browser` was a chrome/firefox guard around the copy/
cut/paste handlers; every currently supported browser implements those
events, so drop both the require and the guard. The handler block is
always registered now.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b2e370 commit b6009e7
1 file changed
Lines changed: 13 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
368 | 360 | | |
369 | | - | |
370 | | - | |
371 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
372 | 364 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
377 | 368 | | |
378 | 369 | | |
379 | 370 | | |
| |||
0 commit comments