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