0
0
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:
neon_arch 2023-09-22 19:57:49 +03:00
parent 1ff51af224
commit 9253d9e48f

View File

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