wxt-dev/wxt

`ctx.applyPatch`

Open

#1,102 opened on Oct 22, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (511 forks)user submission
contribution welcomegood first issue

Repository metrics

Stars
 (9,861 stars)
PR merge metrics
 (Avg merge 11h 6m) (11 merged PRs in 30d)

Description

Feature Request

Add a function that automatically patches all window functions in content scripts so any async callbacks are removed when context is invalidated.

Alternative is to pass the context around and call functions off that which can get quite annoying.

Is your feature request related to a bug?

N/A

Additional context

https://discord.com/channels/1212416027611365476/1297819470655520788/1297819470655520788

Contributor guide