Browse Source

[fix] loading of external resources in JS client toolkit

mrpaulblack 3 years ago
parent
commit
33c0a9e410
1 changed files with 2 additions and 2 deletions
  1. 2 2
      searx/static/themes/simple/src/js/main/00_toolkit.js

+ 2 - 2
searx/static/themes/simple/src/js/main/00_toolkit.js

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