diff --git a/css/app.js b/css/app.js index b8e79789..d810ed79 100644 --- a/css/app.js +++ b/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');