Skip to content

Commit

Permalink
update externalLinkPage.html 2.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ylkjick532428 committed Dec 1, 2022
1 parent b448bdc commit a8cfbd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CDN/externalLinkPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ <h1 id="header" class="header">
var address ='';
function getQueryString() {
var tmpArr = window.location.href.split('?ref=');
return tmpArr.slice(1, tmpArr.length).join('?ref=');
var tmpUrl = tmpArr.slice(1, tmpArr.length).join('?ref=');
try {
return decodeURIComponent(tmpUrl);
} catch(e) {
return tmpUrl;
}
}
function isURL(str) {
var url = /^https:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/i;
Expand Down
7 changes: 6 additions & 1 deletion Local/externalLinkPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ <h1 id="header" class="header">
var address ='';
function getQueryString() {
var tmpArr = window.location.href.split('?ref=');
return tmpArr.slice(1, tmpArr.length).join('?ref=');
var tmpUrl = tmpArr.slice(1, tmpArr.length).join('?ref=');
try {
return decodeURIComponent(tmpUrl);
} catch(e) {
return tmpUrl;
}
}
function isURL(str) {
var url = /^https:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/i;
Expand Down

0 comments on commit a8cfbd1

Please sign in to comment.