mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-12-22 04:18:21 -05:00
✨ feat: replace consts with lets (#210)
This commit is contained in:
parent
1ff51af224
commit
9253d9e48f
@ -3,8 +3,8 @@
|
||||
* @returns {void}
|
||||
*/
|
||||
function navigate_forward() {
|
||||
const url = new URL(window.location);
|
||||
const searchParams = url.searchParams;
|
||||
let url = new URL(window.location);
|
||||
let searchParams = url.searchParams;
|
||||
|
||||
let q = searchParams.get('q');
|
||||
let page = parseInt(searchParams.get('page'));
|
||||
@ -23,8 +23,8 @@ function navigate_forward() {
|
||||
* @returns {void}
|
||||
*/
|
||||
function navigate_backward() {
|
||||
const url = new URL(window.location);
|
||||
const searchParams = url.searchParams;
|
||||
let url = new URL(window.location);
|
||||
let searchParams = url.searchParams;
|
||||
|
||||
let q = searchParams.get('q');
|
||||
let page = parseInt(searchParams.get('page'));
|
||||
|
Loading…
Reference in New Issue
Block a user