mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Remove useless appVer from JS window.config (#21445)
				
					
				
			The only usage of `appVer` was in serviceworker.js, while indeed it needs the asset version.
This commit is contained in:
		@@ -6,7 +6,6 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
 | 
			
		||||
<script>
 | 
			
		||||
	window.addEventListener('error', function(e) {window._globalHandlerErrors=window._globalHandlerErrors||[]; window._globalHandlerErrors.push(e);});
 | 
			
		||||
	window.config = {
 | 
			
		||||
		appVer: '{{AppVer}}',
 | 
			
		||||
		appUrl: '{{AppUrl}}',
 | 
			
		||||
		appSubUrl: '{{AppSubUrl}}',
 | 
			
		||||
		assetVersionEncoded: encodeURIComponent('{{AssetVersion}}'), // will be used in URL construction directly
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user