mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 05:54:00 +01:00
add remove fx
This commit is contained in:
parent
c819f6cd4a
commit
58c9bd4f10
1 changed files with 10 additions and 0 deletions
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…
Reference in a new issue