Fixed unwanted tg proto URLs handling
This commit is contained in:
parent
55c661a2c7
commit
32f67b18bb
@ -1925,7 +1925,7 @@ angular.module('izhukov.utils', [])
|
||||
}
|
||||
|
||||
function wrapUrl (url, unsafe) {
|
||||
if (!url.match(/^(https?|tg):\/\//i)) {
|
||||
if (!url.match(/^https?:\/\//i)) {
|
||||
url = 'http://' + url
|
||||
}
|
||||
var tgMeMatch
|
||||
|
@ -4797,6 +4797,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
||||
url.search('https://t.me/') === 0) {
|
||||
target = '_self'
|
||||
}
|
||||
else if (!url.match(/^https?:\/\//)) {
|
||||
url = 'http://' + url
|
||||
}
|
||||
var popup = window.open(url, target)
|
||||
try {
|
||||
popup.opener = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user