Skip to content

Commit e2c621f

Browse files
committed
Fixed regression in privacy plugin
1 parent 5eef815 commit e2c621f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

material/plugins/privacy/plugin.py

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def on_page_content(self, html, *, page, config, files):
149149

150150
# Sync all concurrent jobs
151151
def on_env(self, env, *, config, files):
152+
if not self.config.enabled:
153+
return
154+
155+
# Wait until all jobs until now are finished
152156
wait(self.pool_jobs)
153157

154158
# Process external assets in template (run later)

src/plugins/privacy/plugin.py

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def on_page_content(self, html, *, page, config, files):
149149

150150
# Sync all concurrent jobs
151151
def on_env(self, env, *, config, files):
152+
if not self.config.enabled:
153+
return
154+
155+
# Wait until all jobs until now are finished
152156
wait(self.pool_jobs)
153157

154158
# Process external assets in template (run later)

0 commit comments

Comments
 (0)