Skip to content

Commit

Permalink
Fixed regression in privacy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Oct 15, 2024
1 parent 5eef815 commit e2c621f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions material/plugins/privacy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ def on_page_content(self, html, *, page, config, files):

# Sync all concurrent jobs
def on_env(self, env, *, config, files):
if not self.config.enabled:
return

# Wait until all jobs until now are finished
wait(self.pool_jobs)

# Process external assets in template (run later)
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/privacy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ def on_page_content(self, html, *, page, config, files):

# Sync all concurrent jobs
def on_env(self, env, *, config, files):
if not self.config.enabled:
return

# Wait until all jobs until now are finished
wait(self.pool_jobs)

# Process external assets in template (run later)
Expand Down

0 comments on commit e2c621f

Please sign in to comment.