Merge pull request #1194 from mrpaulblack/fix-leaflet-src

[fix] loading of external resources in JS client toolkit
This commit is contained in:
Léon Tiekötter 2022-05-10 23:24:24 +02:00 committed by GitHub
commit 035a4eaa09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -101,7 +101,7 @@ window.searxng = (function (w, d) {
}; };
searxng.loadStyle = function (src) { searxng.loadStyle = function (src) {
var path = searxng.settings.theme_static_path + src, var path = searxng.settings.theme_static_path + "/" + src,
id = "style_" + src.replace('.', '_'), id = "style_" + src.replace('.', '_'),
s = d.getElementById(id); s = d.getElementById(id);
if (s === null) { if (s === null) {
@ -115,7 +115,7 @@ window.searxng = (function (w, d) {
}; };
searxng.loadScript = function (src, callback) { searxng.loadScript = function (src, callback) {
var path = searxng.settings.theme_static_path + src, var path = searxng.settings.theme_static_path + "/" + src,
id = "script_" + src.replace('.', '_'), id = "script_" + src.replace('.', '_'),
s = d.getElementById(id); s = d.getElementById(id);
if (s === null) { if (s === null) {