mirror of
https://github.com/imgyh/tiktok.git
synced 2025-04-05 20:55:43 +08:00
fix(web): 解决浏览器提示不安全问题
This commit is contained in:
parent
1c48f64b75
commit
a140c2f3f8
@ -230,5 +230,10 @@ window.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
|
||||
function removeHttp(url) {
|
||||
return url.replace(/^https?:/, '');
|
||||
console.log(url)
|
||||
if (typeof (url) == 'string') {
|
||||
url = url.replace(/^https?:/, '');
|
||||
}
|
||||
console.log(url)
|
||||
return url;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user