Skip to content

Commit

Permalink
fix violentmonkey#2231: force-update deps on script update
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Nov 15, 2024
1 parent 212a1dc commit b62f0a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background/utils/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ export async function fetchResources(script, src) {
*/
async function fetchResource(src, type, url) {
if (!src.reuseDeps && !isRemote(url)
|| src.update
|| await storage[type].getOne(url) == null) {
const { portId } = src;
if (portId) postToPort(depsPorts, portId, [url]);
Expand Down

0 comments on commit b62f0a2

Please sign in to comment.