mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add remove fx
This commit is contained in:
		
							parent
							
								
									c819f6cd4a
								
							
						
					
					
						commit
						58c9bd4f10
					
				
							
								
								
									
										10
									
								
								css/app.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								css/app.js
									
									
									
									
									
								
							| @ -1,5 +1,15 @@ | ||||
| // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later  
 | ||||
| 
 | ||||
| // Get the current URL
 | ||||
| const url = new URL(window.location.href); | ||||
| 
 | ||||
| // Remove the 'fx' query parameter
 | ||||
| url.searchParams.delete('fx'); | ||||
| 
 | ||||
| // Replace the current URL without the 'fx' parameter
 | ||||
| history.replaceState(null, '', url.toString()); | ||||
| 
 | ||||
| 
 | ||||
| // Retrieve volume from local storage or set to max if not available
 | ||||
| const initialVolume = localStorage.getItem('playerVolume') || 1; | ||||
| const video = document.getElementById('video'); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley