mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Remove joinPaths function (#26833)
Extract from https://github.com/go-gitea/gitea/pull/25940. `assetUrlPrefix` is guaranteed to not contain trailing slashes, making this function unneeded.
This commit is contained in:
		
							
								
								
									
										4
									
								
								web_src/js/bootstrap.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								web_src/js/bootstrap.js
									
									
									
									
										vendored
									
									
								
							@@ -1,11 +1,9 @@
 | 
			
		||||
import {joinPaths} from './utils.js';
 | 
			
		||||
 | 
			
		||||
// DO NOT IMPORT window.config HERE!
 | 
			
		||||
// to make sure the error handler always works, we should never import `window.config`, because some user's custom template breaks it.
 | 
			
		||||
 | 
			
		||||
// This sets up the URL prefix used in webpack's chunk loading.
 | 
			
		||||
// This file must be imported before any lazy-loading is being attempted.
 | 
			
		||||
__webpack_public_path__ = joinPaths(window?.config?.assetUrlPrefix ?? '/', '/');
 | 
			
		||||
__webpack_public_path__ = `${window.config?.assetUrlPrefix ?? '/assets'}/`;
 | 
			
		||||
 | 
			
		||||
export function showGlobalErrorMessage(msg) {
 | 
			
		||||
  const pageContent = document.querySelector('.page-content');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user