add remove fx

This commit is contained in:
Ashley 2023-11-12 14:58:48 +00:00
parent c819f6cd4a
commit 58c9bd4f10

View file

@ -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');