We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c4ce0 commit 007d9b2Copy full SHA for 007d9b2
1 file changed
web/packages/core/src/internal/player/inner.tsx
@@ -511,8 +511,8 @@ export class InnerPlayer {
511
private startBackgroundTick(): void {
512
const intervalMs = 1000 / (this.metadata?.frameRate || 24);
513
514
- // intervalMs is a number computed from SWF metadata, so there is no
515
- // risk of code injection via the template literal below.
+ // intervalMs is always a number (dividing 1000 by anything yields a number
+ // or NaN), so no code injection via the template literal is possible.
516
const workerCode = `
517
const intervalMs = ${intervalMs};
518
self.onmessage = () => {
0 commit comments