change var to let in extension

master
Your Name 2024-01-25 14:17:18 +08:00
parent 1f6bcdb2ac
commit 861996afc3
1 changed files with 3 additions and 5 deletions

View File

@ -18,11 +18,9 @@ function getCookie(cname) {
} }
function get_url_parameter(sParam, sPageURL) { function get_url_parameter(sParam, sPageURL) {
var sURLVariables = sPageURL.split('&'), let sURLVariables = sPageURL.split('&'),
sParameterName, sParameterName;
i; for (let i = 0; i < sURLVariables.length; i++) {
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('='); sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) { if (sParameterName[0] === sParam) {