|
|
@ -4219,9 +4219,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
function checkLocationTgAddr () { |
|
|
|
function checkLocationTgAddr () { |
|
|
|
var tgaddr = $routeParams.tgaddr; |
|
|
|
var tgaddr = $routeParams.tgaddr; |
|
|
|
if (tgaddr) { |
|
|
|
if (tgaddr) { |
|
|
|
|
|
|
|
if (!tgaddr.match(/[=&?]/)) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
tgaddr = decodeURIComponent(tgaddr); |
|
|
|
tgaddr = decodeURIComponent(tgaddr); |
|
|
|
} catch (e) {}; |
|
|
|
} catch (e) {}; |
|
|
|
|
|
|
|
} |
|
|
|
var matches = tgaddr.match(tgAddrRegExp); |
|
|
|
var matches = tgaddr.match(tgAddrRegExp); |
|
|
|
if (matches) { |
|
|
|
if (matches) { |
|
|
|
handleTgProtoAddr(matches[3]); |
|
|
|
handleTgProtoAddr(matches[3]); |
|
|
|