forked from zaclys/searxng
		
	Merge pull request #1194 from mrpaulblack/fix-leaflet-src
[fix] loading of external resources in JS client toolkit
This commit is contained in:
		
						commit
						035a4eaa09
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		
							
								
								
									
										2
									
								
								searx/static/themes/simple/js/searxng.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								searx/static/themes/simple/js/searxng.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue