summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-30 20:21:03 +0100
committerGitHub <noreply@github.com>2021-11-30 20:21:03 +0100
commit632ae7d175dc3ad7404e1df943b1dc45881f7c87 (patch)
treeb7926f91cee25b90369ac9d6410b0f679b13eb3e /searx/static/themes/simple/src
parent0311eba538df589bc11a4d76d3c94b104c5b764d (diff)
parent4798acc6615efada91c8fb29083a521daf5e1e27 (diff)
Merge pull request #562 from return42/fix-img-alt
[simple] ImageLayout.watch: `img_load_error.svg` if img load fails
Diffstat (limited to 'searx/static/themes/simple/src')
-rw-r--r--searx/static/themes/simple/src/js/head/00_init.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/js/head/00_init.js b/searx/static/themes/simple/src/js/head/00_init.js
index 21b1754bf..dab0e368a 100644
--- a/searx/static/themes/simple/src/js/head/00_init.js
+++ b/searx/static/themes/simple/src/js/head/00_init.js
@@ -24,6 +24,10 @@
hotkeys: script.getAttribute('data-hotkeys') === 'true',
static_path: script.getAttribute('data-static-path'),
translations: JSON.parse(script.getAttribute('data-translations')),
+ theme : {
+ // image that is displayed if load of <img src='...'> failed
+ img_load_error: 'img/img_load_error.svg'
+ }
};
// update the css