Skip to content

Commit

Permalink
Fix regression caused by new loading method for webpHero
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Jul 2, 2023
1 parent 6e7dd90 commit 47116eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,8 @@ function setContentInjectionMode (value) {
refreshCacheStatus();
refreshAPIStatus();
// Set the visibility of WebP workaround after change of content injection mode
uiUtil.determineCanvasElementsWorkaround();
// Note we need a timeout because loading the webpHero script in init.js is asynchronous
setTimeout(uiUtil.determineCanvasElementsWorkaround, 1500);
}

/**
Expand Down

0 comments on commit 47116eb

Please sign in to comment.